CampCacheList::deleteFromCache PHP Method

deleteFromCache() public method

public deleteFromCache ( )
    public function deleteFromCache()
    {
        if (CampCache::IsEnabled()) {
            CampCache::singleton()->delete($this->getCacheKey());
        }
    }

Usage Example

Exemplo n.º 1
0
 private static function DeleteCachePluginsInfo()
 {
     if (CampCache::IsEnabled()) {
         $cacheListObj = new CampCacheList(array(), self::CACHE_KEY_PLUGINS_ALL);
         $cacheListObj->deleteFromCache();
         return CampCache::singleton()->delete(self::CACHE_KEY_PLUGINS_LIST);
     }
     return false;
 }