[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

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