mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-29 19:09:56 +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:
@@ -4,6 +4,7 @@ class SuperbWallpapersBridge extends BridgeAbstract {
|
||||
const MAINTAINER = "nel50n";
|
||||
const NAME = "Superb Wallpapers Bridge";
|
||||
const URI = "http://www.superbwallpapers.com/";
|
||||
const CACHE_TIMEOUT = 43200; // 12h
|
||||
const DESCRIPTION = "Returns the latests wallpapers from SuperbWallpapers";
|
||||
|
||||
const PARAMETERS = array( array(
|
||||
@@ -62,8 +63,4 @@ class SuperbWallpapersBridge extends BridgeAbstract {
|
||||
public function getName(){
|
||||
return self::NAME .'- '.$this->getInput('c').' ['.$this->getInput('r').']';
|
||||
}
|
||||
|
||||
public function getCacheDuration(){
|
||||
return 43200; // 12 hours
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user