mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-04-09 08:28:46 +00:00
[index] Introduce CACHE_DIR
This commit is contained in:
parent
5c309e93dc
commit
8fb4db8914
@ -19,6 +19,9 @@ define('PROXY_NAME', 'Hidden Proxy Name');
|
|||||||
date_default_timezone_set('UTC');
|
date_default_timezone_set('UTC');
|
||||||
error_reporting(0);
|
error_reporting(0);
|
||||||
|
|
||||||
|
// Specify directory for cached files (using FileCache)
|
||||||
|
define('CACHE_DIR', __DIR__ . '/cache');
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Create a file named 'DEBUG' for enabling debug mode.
|
Create a file named 'DEBUG' for enabling debug mode.
|
||||||
For further security, you may put whitelisted IP addresses
|
For further security, you may put whitelisted IP addresses
|
||||||
@ -130,7 +133,7 @@ try {
|
|||||||
|
|
||||||
// Initialize cache
|
// Initialize cache
|
||||||
$cache = Cache::create('FileCache');
|
$cache = Cache::create('FileCache');
|
||||||
$cache->setPath(__DIR__ . '/cache');
|
$cache->setPath(CACHE_DIR);
|
||||||
$cache->purgeCache(86400); // 24 hours
|
$cache->purgeCache(86400); // 24 hours
|
||||||
$cache->setParameters($params);
|
$cache->setParameters($params);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user