58 from cubicweb.server import ShuttingDown, utils, hook, pool, querier, sources |
58 from cubicweb.server import ShuttingDown, utils, hook, pool, querier, sources |
59 from cubicweb.server.session import Session, InternalSession, InternalManager, \ |
59 from cubicweb.server.session import Session, InternalSession, InternalManager, \ |
60 security_enabled |
60 security_enabled |
61 from cubicweb.server.ssplanner import EditedEntity |
61 from cubicweb.server.ssplanner import EditedEntity |
62 |
62 |
63 NO_CACHE_RELATIONS = set( [('require_permission', 'object'), |
63 NO_CACHE_RELATIONS = set( [('owned_by', 'object'), |
64 ('owned_by', 'object'), |
|
65 ('created_by', 'object'), |
64 ('created_by', 'object'), |
66 ('cw_source', 'object'), |
65 ('cw_source', 'object'), |
67 ]) |
66 ]) |
68 |
67 |
69 def prefill_entity_caches(entity, relations): |
68 def prefill_entity_caches(entity, relations): |