diff options
author | 2024-08-30 02:44:50 +0200 | |
---|---|---|
committer | 2024-08-30 02:44:50 +0200 | |
commit | bb2f471a03211a2ebe53de67c14bc3ef97803715 (patch) | |
tree | aeed200bfcac7989e4b327a9c811832a33cfe65e | |
parent | 3e1a8b29d95fe7fc0120e813ab623720ae056b8b (diff) | |
download | rss-bridge-bb2f471a03211a2ebe53de67c14bc3ef97803715.tar.gz rss-bridge-bb2f471a03211a2ebe53de67c14bc3ef97803715.tar.zst rss-bridge-bb2f471a03211a2ebe53de67c14bc3ef97803715.zip |
fix: bug in prior fix (#4243)
Have to tweak the config BEFORE instantiating of course
-rwxr-xr-x | bin/cache-clear | 1 | ||||
-rwxr-xr-x | bin/cache-prune | 8 |
2 files changed, 5 insertions, 4 deletions
diff --git a/bin/cache-clear b/bin/cache-clear index c8f53122..2ca84ce6 100755 --- a/bin/cache-clear +++ b/bin/cache-clear @@ -10,6 +10,7 @@ require __DIR__ . '/../lib/config.php'; $container = require __DIR__ . '/../lib/dependencies.php'; +/** @var CacheInterface $cache */ $cache = $container['cache']; $cache->clear(); diff --git a/bin/cache-prune b/bin/cache-prune index 755ed8d5..bb72c4ac 100755 --- a/bin/cache-prune +++ b/bin/cache-prune @@ -10,15 +10,15 @@ require __DIR__ . '/../lib/config.php'; $container = require __DIR__ . '/../lib/dependencies.php'; -/** @var CacheInterface $cache */ -$cache = $container['cache']; - if ( Configuration::getConfig('cache', 'type') === 'file' && !Configuration::getConfig('FileCache', 'enable_purge') ) { - // Override enable_purge for this execution + // Override enable_purge for this particular execution Configuration::setConfig('FileCache', 'enable_purge', true); } +/** @var CacheInterface $cache */ +$cache = $container['cache']; + $cache->prune(); |