/** * Delete all expired objects from the cache. * * Note: for the memcached cache, we have no option to only purge * the expired objects. Instead, the full cache will be flushed. * * @param boolean $full * If true, then the full cache will be expired, not only the * expired part of the cache. * * @return string * A string describing the result status. This is used by the * cache purging screen in the admin interface to show the result. */ function phorum_cache_purge($full = false) { if (empty($GLOBALS['PHORUM']['memcache_obj'])) { return "Memcached cache not purged, connection to memcached failed."; } phorum_cache_clear(); return "Memcached cache purged"; }
function phorum_cache_purge($full = false) { phorum_cache_clear(); return "APC cache purged"; }