Пример #1
0
 /**
  * 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();
     }
 }
Пример #2
0
 /**
  * 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;
 }