1
0
Fork 0
forked from blallo/rss-bridge

[index] Introduce CACHE_DIR

This commit is contained in:
logmanoriginal 2016-10-08 16:21:00 +02:00
parent 5c309e93dc
commit 8fb4db8914

View file

@ -19,6 +19,9 @@ define('PROXY_NAME', 'Hidden Proxy Name');
date_default_timezone_set('UTC');
error_reporting(0);
// Specify directory for cached files (using FileCache)
define('CACHE_DIR', __DIR__ . '/cache');
/*
Create a file named 'DEBUG' for enabling debug mode.
For further security, you may put whitelisted IP addresses
@ -130,7 +133,7 @@ try {
// Initialize cache
$cache = Cache::create('FileCache');
$cache->setPath(__DIR__ . '/cache');
$cache->setPath(CACHE_DIR);
$cache->purgeCache(86400); // 24 hours
$cache->setParameters($params);