mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-21 15:51:55 +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:
@@ -3,6 +3,7 @@ class LWNprevBridge extends BridgeAbstract{
|
||||
const MAINTAINER = 'Pierre Mazière';
|
||||
const NAME = 'LWN Free Weekly Edition';
|
||||
const URI = 'https://lwn.net/';
|
||||
const CACHE_TIMEOUT = 604800; // 1 week
|
||||
const DESCRIPTION = 'LWN Free Weekly Edition available one week late';
|
||||
|
||||
function getURI(){
|
||||
@@ -140,8 +141,4 @@ class LWNprevBridge extends BridgeAbstract{
|
||||
$this->items[]=$item;
|
||||
}
|
||||
}
|
||||
|
||||
public function getCacheDuration(){
|
||||
return 604800; // one week
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user