diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Configuration.php | 4 | ||||
-rw-r--r-- | lib/RssBridge.php | 1 | ||||
-rw-r--r-- | lib/contents.php | 2 |
3 files changed, 4 insertions, 3 deletions
diff --git a/lib/Configuration.php b/lib/Configuration.php index bc7b5895..ed2c9436 100644 --- a/lib/Configuration.php +++ b/lib/Configuration.php @@ -31,8 +31,8 @@ class Configuration { die('"json" extension not loaded. Please check "php.ini"'); // Check cache folder permissions (write permissions required) - if(!is_writable(CACHE_DIR)) - die('RSS-Bridge does not have write permissions for ' . CACHE_DIR . '!'); + if(!is_writable(PATH_CACHE)) + die('RSS-Bridge does not have write permissions for ' . PATH_CACHE . '!'); // Check whitelist file permissions (only in DEBUG mode) if(!file_exists(WHITELIST_FILE) && !is_writable(dirname(WHITELIST_FILE))) diff --git a/lib/RssBridge.php b/lib/RssBridge.php index 3044339c..2293ed35 100644 --- a/lib/RssBridge.php +++ b/lib/RssBridge.php @@ -2,6 +2,7 @@ define('PATH_VENDOR', __DIR__ . '/../vendor'); // Path for vendor library define('PATH_LIB', __DIR__ . '/../lib'); // Path for core library +define('PATH_CACHE', __DIR__ . '/../cache'); // Path to cache folder // Classes require_once PATH_LIB . '/Exceptions.php'; diff --git a/lib/contents.php b/lib/contents.php index a1343da9..3f3d36c5 100644 --- a/lib/contents.php +++ b/lib/contents.php @@ -113,7 +113,7 @@ $defaultSpanText = DEFAULT_SPAN_TEXT){ // Initialize cache $cache = Cache::create('FileCache'); - $cache->setPath(CACHE_DIR . '/pages'); + $cache->setPath(PATH_CACHE . '/pages'); $cache->purgeCache(86400); // 24 hours (forced) $params = [$url]; |