diff --git a/core/modules/views/src/Plugin/views/cache/CachePluginBase.php b/core/modules/views/src/Plugin/views/cache/CachePluginBase.php index 14df452a22c44cea9c77b8472f07130a731d5ded..929ecac2bd91c0a4650e34fd98343cd9ec639e34 100644 --- a/core/modules/views/src/Plugin/views/cache/CachePluginBase.php +++ b/core/modules/views/src/Plugin/views/cache/CachePluginBase.php @@ -97,6 +97,9 @@ protected function cacheSetMaxAge($type) { * Save data to the cache. * * A plugin should override this to provide specialized caching behavior. + * + * @param $type + * The cache type, either 'query', 'result'. */ public function cacheSet($type) { switch ($type) { @@ -119,6 +122,12 @@ public function cacheSet($type) { * Retrieve data from the cache. * * A plugin should override this to provide specialized caching behavior. + * + * @param $type + * The cache type, either 'query', 'result'. + * + * @return bool + * TRUE if data has been taken from the cache, otherwise FALSE. */ public function cacheGet($type) { $cutoff = $this->cacheExpire($type);