mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-03 23:27:32 +02:00
[core] Apply some fixes
This commit is contained in:
@@ -10,8 +10,8 @@ class Cache {
|
||||
|
||||
static public function create($nameCache){
|
||||
if(!static::isValidNameCache($nameCache)){
|
||||
throw new \InvalidArgumentException('Name cache must be at least'
|
||||
. ' one uppercase follow or not by alphanumeric or dash characters.');
|
||||
throw new \InvalidArgumentException('Name cache must be at least one
|
||||
uppercase follow or not by alphanumeric or dash characters.');
|
||||
}
|
||||
|
||||
$pathCache = self::getDir() . $nameCache . '.php';
|
||||
@@ -72,7 +72,7 @@ class Cache {
|
||||
|
||||
|
||||
static public function purge(){
|
||||
$cacheTimeLimit = time() - 60*60*24;
|
||||
$cacheTimeLimit = time() - 86400; // 86400 -> 24h
|
||||
$cachePath = 'cache';
|
||||
if(file_exists($cachePath)){
|
||||
$cacheIterator = new RecursiveIteratorIterator(
|
||||
|
Reference in New Issue
Block a user