mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-06 02:47:30 +02:00
[BridgeAbstract] replace getCacheDuration method by CACHE_TIMEOUT class constant
Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
This commit is contained in:
parent
ad534444fa
commit
235c985901
81 changed files with 84 additions and 332 deletions
|
@ -121,9 +121,4 @@ class GBAtempBridge extends BridgeAbstract {
|
|||
);
|
||||
return 'GBAtemp '.$type.' Bridge';
|
||||
}
|
||||
|
||||
public function getCacheDuration() {
|
||||
return ($this->filter === 'Forum') ? 300 : 3600; // 5 minutes / 1 hour
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue