Пример #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
 /**
  * Очищает кэш нахрен
  */
 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);
 }