Skip to content
Snippets Groups Projects
Commit 4b233f80 authored by catch's avatar catch
Browse files

Issue #3250482 by quietone, daffie: The docblock of...

Issue #3250482 by quietone, daffie: The docblock of \Drupal\views\Plugin\views\cache\CachePluginBase::cacheSetMaxAge() is wrong

(cherry picked from commit 266fe1a7)
parent af165d2a
No related branches found
No related tags found
No related merge requests found
...@@ -81,13 +81,14 @@ protected function cacheExpire($type) { ...@@ -81,13 +81,14 @@ protected function cacheExpire($type) {
} }
/** /**
* 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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment