mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-07-20 02:34:51 +02:00
core: Add support for custom cache types via config.ini.php
This commit adds support for a new parameter which specifies the type of cache to use for caching. It is specified in config.ini.php: [cache] type = "..." Currently only one type of cache is supported (see /caches). All uses of 'FileCache' were replaced by this configuration option. Note: Caching currently depends on files and folders (due to FileCache). Experience may vary depending on the selected cache type. For now always check if FileCache is working before testing alternative types. References #1000
This commit is contained in:
parent
51ee541d5a
commit
556a417dd6
7 changed files with 85 additions and 5 deletions
|
@ -179,6 +179,9 @@ final class Configuration {
|
|||
/** Name of the proxy server */
|
||||
define('PROXY_NAME', self::getConfig('proxy', 'name'));
|
||||
|
||||
if(!is_string(self::getConfig('cache', 'type')))
|
||||
die('Parameter [cache] => "type" is not a valid string! Please check "config.ini.php"!');
|
||||
|
||||
if(!is_bool(self::getConfig('cache', 'custom_timeout')))
|
||||
die('Parameter [cache] => "custom_timeout" is not a valid Boolean! Please check "config.ini.php"!');
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue