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) { } }
/** * Очищает кэш нахрен */ 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) { } }
public static function clear($key) { Trace::addMessage(self::TraceCategory, 'Start cleaning cache: ' . $key); parent::clear($key); Trace::addMessage(self::TraceCategory, 'Cache deleted: ' . $key); }