示例#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
文件: XLite.php 项目: kingsj/core
 /**
  * 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;
 }