getKey('limit', 'purge')); self::setPath($conf->getKey('dir', '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(); $file = 'purge_limiter.php'; if (self::_exists($file)) { require self::getPath($file); $pl = $GLOBALS['purge_limiter']; if ($pl + self::$_limit >= $now) { return false; } } $content = '