19 static $memcache_available;
21 if ((!isset($CONFIG->memcache)) || (!$CONFIG->memcache)) {
26 if (($memcache_available !==
true) && ($memcache_available !==
false)) {
28 $tmp = new \ElggMemcache();
30 $memcache_available =
true;
32 $memcache_available =
false;
36 return $memcache_available;
48 static $newentity_cache;
51 $newentity_cache = new \ElggMemcache(
'new_entity_cache');
54 if ($newentity_cache) {
_elgg_invalidate_memcache_for_entity($entity_guid)
Invalidate an entity in memcache.
elgg global
Pointer to the global context.
is_memcache_available()
Return true if memcache is available and configured.