diff options
author | Steve Clay <steve@mrclay.org> | 2012-12-04 14:14:44 -0800 |
---|---|---|
committer | Steve Clay <steve@mrclay.org> | 2012-12-04 14:14:44 -0800 |
commit | 389b508ce49d41ecbfab5822f3a04add3305fc2e (patch) | |
tree | 794ab149836fc4973322a8949f50be24d31ab2d0 /engine | |
parent | 9782ab32775408a49a33e9710fb680c953ee11b1 (diff) | |
parent | 7ca70cd97dc3b7f728eb79dcacc7c2c972f129e0 (diff) | |
download | elgg-389b508ce49d41ecbfab5822f3a04add3305fc2e.tar.gz elgg-389b508ce49d41ecbfab5822f3a04add3305fc2e.tar.bz2 |
Merge pull request #443 from mrclay/4932-18
Fixes #4932: Allow plugins to be saved in entity cache
Diffstat (limited to 'engine')
-rw-r--r-- | engine/lib/entities.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engine/lib/entities.php b/engine/lib/entities.php index e9c96a596..fda554388 100644 --- a/engine/lib/entities.php +++ b/engine/lib/entities.php @@ -59,9 +59,9 @@ function invalidate_cache_for_entity($guid) { function cache_entity(ElggEntity $entity) { global $ENTITY_CACHE; - // Don't cache entities while access control is off, otherwise they could be + // Don't cache non-plugin entities while access control is off, otherwise they could be // exposed to users who shouldn't see them when control is re-enabled. - if (elgg_get_ignore_access()) { + if (!($entity instanceof ElggPlugin) && elgg_get_ignore_access()) { return; } |