core: Add path separator to PATH_CACHE

This commit is contained in:
logmanoriginal 2018-11-10 19:48:05 +01:00
parent 2104fc4d58
commit ecdac1b089
4 changed files with 4 additions and 4 deletions

View File

@ -53,7 +53,7 @@ class PixivBridge extends BridgeAbstract {
$url = str_replace('_master1200', '', $url);
$url = str_replace('c/240x240/img-master/', 'img-original/', $url);
$path = PATH_CACHE . '/pixiv_img';
$path = PATH_CACHE . 'pixiv_img/';
if(!is_dir($path))
mkdir($path, 0755, true);

View File

@ -77,7 +77,7 @@ class WordPressPluginUpdateBridge extends BridgeAbstract {
debugMessage('getting pubdate from url ' . $url . '');
// Initialize cache
$cache = Cache::create('FileCache');
$cache->setPath(PATH_CACHE . '/pages');
$cache->setPath(PATH_CACHE . 'pages/');
$params = [$url];
$cache->setParameters($params);
// Get cachefile timestamp

View File

@ -113,7 +113,7 @@ $defaultSpanText = DEFAULT_SPAN_TEXT){
// Initialize cache
$cache = Cache::create('FileCache');
$cache->setPath(PATH_CACHE . '/pages');
$cache->setPath(PATH_CACHE . 'pages/');
$cache->purgeCache(86400); // 24 hours (forced)
$params = [$url];

View File

@ -5,7 +5,7 @@ define('PATH_LIB_VENDOR', __DIR__ . '/../vendor/'); // Path to vendor library
define('PATH_LIB_BRIDGES', __DIR__ . '/../bridges/'); // Path to bridges library
define('PATH_LIB_FORMATS', __DIR__ . '/../formats/'); // Path to formats library
define('PATH_LIB_CACHES', __DIR__ . '/../caches/'); // Path to caches library
define('PATH_CACHE', __DIR__ . '/../cache'); // Path to cache folder
define('PATH_CACHE', __DIR__ . '/../cache/'); // Path to cache folder
define('REPOSITORY', 'https://github.com/RSS-Bridge/rss-bridge/');
// Interfaces