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

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:
logmanoriginal
2018-11-06 18:35:40 +01:00
parent 4bf45df18e
commit 2126db84ac
7 changed files with 8 additions and 10 deletions

View File

@@ -121,7 +121,7 @@ class ElloBridge extends BridgeAbstract {
private function getAPIKey() {
$cache = Cache::create('FileCache');
$cache->setPath(CACHE_DIR);
$cache->setPath(PATH_CACHE);
$cache->setParameters(['key']);
$key = $cache->loadData();