mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-07-30 05:10:15 +02:00
[Bridge] Simplify cache loading
This commit is contained in:
@@ -251,13 +251,10 @@ abstract class BridgeAbstract implements BridgeInterface {
|
||||
if(!is_null($this->cache)){
|
||||
$this->cache->prepare($inputs);
|
||||
$time = $this->cache->getTime();
|
||||
} else {
|
||||
$time = false;
|
||||
}
|
||||
|
||||
if($time !== false && (time() - $this->getCacheDuration() < $time)){
|
||||
$this->items = $this->cache->loadData();
|
||||
return;
|
||||
if($time !== false && (time() - $this->getCacheDuration() < $time)){
|
||||
$this->items = $this->cache->loadData();
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
if(empty($this->parameters)){
|
||||
|
Reference in New Issue
Block a user