public static function forgetAll() { if (PHP_CACHING_ON) { self::$cachedEntries = array(); } if (MEMCACHE_ON && Yii::app()->cache !== null) { @Yii::app()->cache->flush(); } }
/** * Remove all GeneralCache data from php cache and/or memcache * Please note that we are not using $Yii::app()->cache->forget function, because * this function remove all data from memcache, so it would remove memcache data * that are added by other application on same server(if there is only one instance of memcache on server) */ public static function forgetAll() { if (PHP_CACHING_ON) { self::$cachedEntries = array(); } if (MEMCACHE_ON && Yii::app()->cache !== null) { self::incrementCacheIncrementValue(static::$cacheType); } }