Exemplo n.º 1
0
 /**
  * 当任意配置项被修改时,调用该服务更新缓存文件(Hook调用)
  *
  * @param string $namespace
  */
 public function updateConfig($namespace)
 {
     if (in_array($namespace, array('site', 'credit', 'bbs', 'attachment', 'components', 'seo', 'nav'))) {
         PwDelayRun::getInstance()->call(array(Wekit::load('cache.srv.PwCacheUpdateService'), 'updateConfig'));
     }
 }
Exemplo n.º 2
0
 public static function getInstance()
 {
     isset(self::$instance) || (self::$instance = new self());
     return self::$instance;
 }