/** * Ability to provoke cache cleanup (or to prevent it) * * @param boolean $flag If it's needed to cleanup cache or not * * @return void */ public static function setCleanUpCacheFlag($flag) { static::$isNeedToCleanupCache = true === $flag; if (static::$isNeedToCleanupCache) { \Includes\Decorator\Utils\CacheManager::setCacheRebuildMark(); } else { \Includes\Decorator\Utils\CacheManager::unsetCacheRebuildMark(); } }
/** * Ability to provoke cache cleanup (or to prevent it) * * @param boolean $flag If it's needed to cleanup cache or not * * @return void */ public static function setCleanUpCacheFlag($flag) { static::$isNeedToCleanupCache = true === $flag; }