mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-05 02:24:35 +02:00
[index] Initialize cache before loading to bridge
Previously BridgeAbstract needed to know which exact implementation of CacheInterface was used (since we only got one right now its not a problem). Initializing the cache in index.php instead allows to change cache types more easily.
This commit is contained in:
parent
d941fa41f6
commit
5de4a59d41
2 changed files with 8 additions and 6 deletions
|
@ -138,7 +138,6 @@ abstract class BridgeAbstract implements BridgeInterface {
|
|||
*/
|
||||
public function setDatas(array $inputs){
|
||||
if(!is_null($this->cache)){
|
||||
$this->cache->setParameters($inputs);
|
||||
$time = $this->cache->getTime();
|
||||
if($time !== false
|
||||
&& (time() - static::CACHE_TIMEOUT < $time)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue