mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2024-12-18 00:43:19 +03:00
fix: bug in prior fix (#4243)
Have to tweak the config BEFORE instantiating of course
This commit is contained in:
parent
3e1a8b29d9
commit
bb2f471a03
2 changed files with 5 additions and 4 deletions
|
@ -10,6 +10,7 @@ require __DIR__ . '/../lib/config.php';
|
||||||
|
|
||||||
$container = require __DIR__ . '/../lib/dependencies.php';
|
$container = require __DIR__ . '/../lib/dependencies.php';
|
||||||
|
|
||||||
|
/** @var CacheInterface $cache */
|
||||||
$cache = $container['cache'];
|
$cache = $container['cache'];
|
||||||
|
|
||||||
$cache->clear();
|
$cache->clear();
|
||||||
|
|
|
@ -10,15 +10,15 @@ require __DIR__ . '/../lib/config.php';
|
||||||
|
|
||||||
$container = require __DIR__ . '/../lib/dependencies.php';
|
$container = require __DIR__ . '/../lib/dependencies.php';
|
||||||
|
|
||||||
/** @var CacheInterface $cache */
|
|
||||||
$cache = $container['cache'];
|
|
||||||
|
|
||||||
if (
|
if (
|
||||||
Configuration::getConfig('cache', 'type') === 'file'
|
Configuration::getConfig('cache', 'type') === 'file'
|
||||||
&& !Configuration::getConfig('FileCache', 'enable_purge')
|
&& !Configuration::getConfig('FileCache', 'enable_purge')
|
||||||
) {
|
) {
|
||||||
// Override enable_purge for this execution
|
// Override enable_purge for this particular execution
|
||||||
Configuration::setConfig('FileCache', 'enable_purge', true);
|
Configuration::setConfig('FileCache', 'enable_purge', true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** @var CacheInterface $cache */
|
||||||
|
$cache = $container['cache'];
|
||||||
|
|
||||||
$cache->prune();
|
$cache->prune();
|
||||||
|
|
Loading…
Reference in a new issue