1
0
mirror of https://github.com/RSS-Bridge/rss-bridge.git synced 2025-08-13 12:04:09 +02:00

[cache] Specify cache duration for 'purgeCache'

This commit is contained in:
logmanoriginal
2016-10-08 16:18:10 +02:00
parent 2d56b717cf
commit 5c309e93dc
3 changed files with 4 additions and 5 deletions

View File

@@ -131,7 +131,7 @@ try {
// Initialize cache
$cache = Cache::create('FileCache');
$cache->setPath(__DIR__ . '/cache');
$cache->purgeCache();
$cache->purgeCache(86400); // 24 hours
$cache->setParameters($params);
// Load cache & data