예제 #1
0
파일: XLite.php 프로젝트: kewaunited/xcart
 /**
  * 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();
     }
 }