mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-04 18:14:44 +02:00
[cache] Specify cache duration for 'purgeCache'
This commit is contained in:
parent
2d56b717cf
commit
5c309e93dc
3 changed files with 4 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue