[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