From: Steve Clay Date: Mon, 26 Nov 2012 06:20:30 +0000 (-0500) Subject: Fixes #4932: Allow plugins to be saved in entity cache X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=7ca70cd97dc3b7f728eb79dcacc7c2c972f129e0;p=lorea%2Felgg.git Fixes #4932: Allow plugins to be saved in entity cache --- 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; }