mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-07-30 21:30:14 +02:00
[Cache] Move 'purge' function to implementations
The purge function is cache specific and thus belongs to the specific implementation.
This commit is contained in:
@@ -84,8 +84,6 @@ if(!file_exists($whitelist_file)){
|
||||
$whitelist_selection = explode("\n", file_get_contents($whitelist_file));
|
||||
}
|
||||
|
||||
Cache::purge();
|
||||
|
||||
try {
|
||||
|
||||
Bridge::setDir(__DIR__ . '/bridges/');
|
||||
@@ -120,6 +118,8 @@ try {
|
||||
$bridge = Bridge::create($bridge);
|
||||
|
||||
$cache = Cache::create('FileCache');
|
||||
$cache->purgeCache();
|
||||
|
||||
$bridge->setCache($cache);
|
||||
|
||||
$noproxy = filter_input(INPUT_GET, '_noproxy', FILTER_VALIDATE_BOOLEAN);
|
||||
|
Reference in New Issue
Block a user