diff options
author | Steve Clay <steve@mrclay.org> | 2012-11-26 01:20:30 -0500 |
---|---|---|
committer | Steve Clay <steve@mrclay.org> | 2012-11-26 01:20:30 -0500 |
commit | 7ca70cd97dc3b7f728eb79dcacc7c2c972f129e0 (patch) | |
tree | 0520650193cc86f4d9375bf27c7c9963fcc3893f /engine/lib/entities.php | |
parent | 19c6da97ed0178592b9041946f3463f9008dd7ea (diff) | |
download | elgg-7ca70cd97dc3b7f728eb79dcacc7c2c972f129e0.tar.gz elgg-7ca70cd97dc3b7f728eb79dcacc7c2c972f129e0.tar.bz2 |
Fixes #4932: Allow plugins to be saved in entity cache
Diffstat (limited to 'engine/lib/entities.php')
-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 a14160e14..0b28750d5 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; } |