mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-03-14 20:21:14 +03:00
[InstagramBridge] Fix incorrect cache timeout calculation (#2840)
It is expected that getCacheTimeout returns integer. In fact it returned boolean value which lead to situation, where Instagram feeds were not cached.
This commit is contained in:
parent
c6ba3e5280
commit
d0bea1627e
1 changed files with 4 additions and 1 deletions
|
@ -70,7 +70,10 @@ class InstagramBridge extends BridgeAbstract {
|
|||
|
||||
public function getCacheTimeout() {
|
||||
$customTimeout = $this->getOption('cache_timeout');
|
||||
return $customTimeout || parent::getCacheTimeout();
|
||||
if ($customTimeout) {
|
||||
return $customTimeout;
|
||||
}
|
||||
return parent::getCacheTimeout();
|
||||
}
|
||||
|
||||
protected function getContents($uri) {
|
||||
|
|
Loading…
Add table
Reference in a new issue