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 PickyWallpapersBridge extends BridgeAbstract {
|
||||
const MAINTAINER = "nel50n";
|
||||
const NAME = "PickyWallpapers Bridge";
|
||||
const URI = "http://www.pickywallpapers.com/";
|
||||
const CACHE_TIMEOUT = 43200; // 12h
|
||||
const DESCRIPTION = "Returns the latests wallpapers from PickyWallpapers";
|
||||
|
||||
const PARAMETERS = array( array(
|
||||
@@ -69,8 +70,4 @@ class PickyWallpapersBridge extends BridgeAbstract {
|
||||
.($subcategory? ' > '.$subcategory : '')
|
||||
.' ['.$this->getInput('r').']';
|
||||
}
|
||||
|
||||
public function getCacheDuration(){
|
||||
return 43200; // 12 hours
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user