示例#1
0
 public function setUp()
 {
     parent::setUp();
     include __DIR__ . DIRECTORY_SEPARATOR . 'import.php';
     TestsHelper::dbFixture(USERS_TABLE, array(array('login' => self::loginFixture, 'email' => '*****@*****.**', 'password' => PasswordColumn::hash(self::passwordFixture)), array('login' => 'guest', 'email' => '*****@*****.**', 'password' => PasswordColumn::hash(self::passwordFixture))));
     ACL::create(self::testReadRight, '');
     ACL::create(self::testWriteRight, '');
     try {
         SimpleCache::clear(ACLUser::CacheKey);
     } catch (\Exception $e) {
     }
 }
示例#2
0
文件: sample.php 项目: gudwin/extasy
 /**
  * Очищает кэш нахрен
  */
 public static function clearCache()
 {
     self::$aChildCache = array();
     self::$aGetCache = array();
     try {
         SimpleCache::clear(SYSTEM_REGISTER_GET_CACHE);
         SimpleCache::clear(SYSTEM_REGISTER_CHILD_CACHE);
     } catch (Exception $e) {
     }
 }
示例#3
0
 public static function clear($key)
 {
     Trace::addMessage(self::TraceCategory, 'Start cleaning cache: ' . $key);
     parent::clear($key);
     Trace::addMessage(self::TraceCategory, 'Cache deleted: ' . $key);
 }