core: Replace CACHE_DIR by PATH_CACHE
Move CACHE_DIR from index.php to /lib/RssBridge.php and change name to PATH_CACHE. PATH_CACHE is one of the core paths of RSS-Bridge and should therefore be defined in the core file RssBridge.php.
This commit is contained in:
parent
4bf45df18e
commit
2126db84ac
7 changed files with 8 additions and 10 deletions
|
@ -28,9 +28,6 @@ if(file_exists('DEBUG')) {
|
|||
|
||||
require_once __DIR__ . '/lib/RssBridge.php';
|
||||
|
||||
// Specify directory for cached files (using FileCache)
|
||||
define('CACHE_DIR', __DIR__ . '/cache');
|
||||
|
||||
// Specify path for whitelist file
|
||||
define('WHITELIST_FILE', __DIR__ . '/whitelist.txt');
|
||||
|
||||
|
@ -222,7 +219,7 @@ try {
|
|||
|
||||
// Initialize cache
|
||||
$cache = Cache::create('FileCache');
|
||||
$cache->setPath(CACHE_DIR);
|
||||
$cache->setPath(PATH_CACHE);
|
||||
$cache->purgeCache(86400); // 24 hours
|
||||
$cache->setParameters($cache_params);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue