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
|
||||
* or CACHE_PERMANENT if item shouldn't be removed automatically from cache.
|
||||
* Determine cache expiration time.
|
||||
*
|
||||
* 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
|
||||
* The cache type, either 'query', 'result'.
|
||||
* @param string $type
|
||||
* The cache type.
|
||||
*/
|
||||
protected function cacheSetMaxAge($type) {
|
||||
return Cache::PERMANENT;
|
||||
|
|
Loading…
Reference in New Issue