core: Add path separator to PATH_CACHE
This commit is contained in:
parent
2104fc4d58
commit
ecdac1b089
4 changed files with 4 additions and 4 deletions
|
@ -53,7 +53,7 @@ class PixivBridge extends BridgeAbstract {
|
||||||
|
|
||||||
$url = str_replace('_master1200', '', $url);
|
$url = str_replace('_master1200', '', $url);
|
||||||
$url = str_replace('c/240x240/img-master/', 'img-original/', $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))
|
if(!is_dir($path))
|
||||||
mkdir($path, 0755, true);
|
mkdir($path, 0755, true);
|
||||||
|
|
|
@ -77,7 +77,7 @@ class WordPressPluginUpdateBridge extends BridgeAbstract {
|
||||||
debugMessage('getting pubdate from url ' . $url . '');
|
debugMessage('getting pubdate from url ' . $url . '');
|
||||||
// Initialize cache
|
// Initialize cache
|
||||||
$cache = Cache::create('FileCache');
|
$cache = Cache::create('FileCache');
|
||||||
$cache->setPath(PATH_CACHE . '/pages');
|
$cache->setPath(PATH_CACHE . 'pages/');
|
||||||
$params = [$url];
|
$params = [$url];
|
||||||
$cache->setParameters($params);
|
$cache->setParameters($params);
|
||||||
// Get cachefile timestamp
|
// Get cachefile timestamp
|
||||||
|
|
|
@ -113,7 +113,7 @@ $defaultSpanText = DEFAULT_SPAN_TEXT){
|
||||||
|
|
||||||
// Initialize cache
|
// Initialize cache
|
||||||
$cache = Cache::create('FileCache');
|
$cache = Cache::create('FileCache');
|
||||||
$cache->setPath(PATH_CACHE . '/pages');
|
$cache->setPath(PATH_CACHE . 'pages/');
|
||||||
$cache->purgeCache(86400); // 24 hours (forced)
|
$cache->purgeCache(86400); // 24 hours (forced)
|
||||||
|
|
||||||
$params = [$url];
|
$params = [$url];
|
||||||
|
|
|
@ -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_BRIDGES', __DIR__ . '/../bridges/'); // Path to bridges library
|
||||||
define('PATH_LIB_FORMATS', __DIR__ . '/../formats/'); // Path to formats library
|
define('PATH_LIB_FORMATS', __DIR__ . '/../formats/'); // Path to formats library
|
||||||
define('PATH_LIB_CACHES', __DIR__ . '/../caches/'); // Path to caches 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/');
|
define('REPOSITORY', 'https://github.com/RSS-Bridge/rss-bridge/');
|
||||||
|
|
||||||
// Interfaces
|
// Interfaces
|
||||||
|
|
Loading…
Reference in a new issue