/** * @deprecated Replaced by {@link phorum_api_cache_clear()}. */ function phorum_cache_clear() { return phorum_api_cache_clear(); }
/** * Remove all expired objects from the cache. * * Note: for the APC 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_api_cache_purge($full = FALSE) { phorum_api_cache_clear(); return "APC cache purged"; }
/** * Remove 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_api_cache_purge($full = FALSE) { global $PHORUM; if (empty($PHORUM['memcache_obj'])) { return "Memcached cache not purged, connection to memcached failed."; } phorum_api_cache_clear(); return "Memcached cache purged"; }