getKey('limit', 'purge')); } /** * check if the purge can be performed * * @access public * @static * @throws \Exception * @return bool */ public static function canPurge() { // disable limits if set to less then 1 if (self::$_limit < 1) { return true; } $now = time(); $pl = (int) self::$_store->getValue('purge_limiter'); if ($pl + self::$_limit >= $now) { return false; } self::$_store->setValue((string) $now, 'purge_limiter'); return true; } }