1
0
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:
logmanoriginal
2016-10-07 22:33:45 +02:00
parent 51ff8de346
commit 9ac678aac5
4 changed files with 23 additions and 23 deletions

View File

@@ -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);