mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-29 11:00:10 +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 UnsplashBridge extends BridgeAbstract {
|
||||
const MAINTAINER = "nel50n";
|
||||
const NAME = "Unsplash Bridge";
|
||||
const URI = "http://unsplash.com/";
|
||||
const CACHE_TIMEOUT = 43200; // 12h
|
||||
const DESCRIPTION = "Returns the latests photos from Unsplash";
|
||||
|
||||
const PARAMETERS = array( array(
|
||||
@@ -60,8 +61,4 @@ class UnsplashBridge extends BridgeAbstract {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public function getCacheDuration(){
|
||||
return 43200; // 12 hours
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user