Issue #3250482 by quietone, daffie: The docblock of \Drupal\views\Plugin\views\cache\CachePluginBase::cacheSetMaxAge() is wrong
(cherry picked from commit 266fe1a75d
)
merge-requests/1442/head
parent
af165d2a37
commit
4b233f806f
|
@ -81,13 +81,14 @@ abstract class CachePluginBase extends PluginBase {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Determine expiration time in the cache table of the cache type
|
* Determine cache expiration time.
|
||||||
* or CACHE_PERMANENT if item shouldn't be removed automatically from cache.
|
|
||||||
*
|
*
|
||||||
* Plugins must override this to implement expiration in the cache table.
|
* Plugins must override this to implement expiration in the cache table. The
|
||||||
|
* default is CACHE_PERMANENT, indicating that the item will not be removed
|
||||||
|
* automatically from cache.
|
||||||
*
|
*
|
||||||
* @param $type
|
* @param string $type
|
||||||
* The cache type, either 'query', 'result'.
|
* The cache type.
|
||||||
*/
|
*/
|
||||||
protected function cacheSetMaxAge($type) {
|
protected function cacheSetMaxAge($type) {
|
||||||
return Cache::PERMANENT;
|
return Cache::PERMANENT;
|
||||||
|
|
Loading…
Reference in New Issue