mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-05 02:24:35 +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:
parent
ad534444fa
commit
235c985901
81 changed files with 84 additions and 332 deletions
|
@ -7,6 +7,7 @@ class GooglePlusPostBridge extends BridgeAbstract
|
|||
const MAINTAINER = "Grummfy";
|
||||
const NAME = "Google Plus Post Bridge";
|
||||
const URI = "https://plus.google.com/";
|
||||
const CACHE_TIMEOUT = 600; //10min
|
||||
const DESCRIPTION = "Returns user public post (without API).";
|
||||
|
||||
const PARAMETERS = array( array(
|
||||
|
@ -109,9 +110,4 @@ class GooglePlusPostBridge extends BridgeAbstract
|
|||
{
|
||||
return $this->_url ?: self::URI;
|
||||
}
|
||||
|
||||
public function getCacheDuration()
|
||||
{
|
||||
return 1; // 600; // 10 minutes
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue