1
0
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:
Pierre Mazière
2016-09-25 17:04:28 +02:00
parent ad534444fa
commit 235c985901
81 changed files with 84 additions and 332 deletions

View File

@@ -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
}
}