Commit d6132434 authored by Fabianx's avatar Fabianx Committed by Jeremy

Issue #2993368 by marco, Fabianx: Stampede protection will not load new data...

Issue #2993368 by marco, Fabianx: Stampede protection will not load new data from cache, but instead make old invalid data valid again
parent 38c8b9b8
......@@ -115,12 +115,12 @@ class MemCacheDrupal implements DrupalCacheInterface {
* @param string $cid
* The cache id of the item
* @param mixed $cache
* The cache item.
* The cache item, which will be updated if needed.
*
* @return bool
* Whether the item is valid.
*/
protected function valid($cid, $cache) {
protected function valid($cid, &$cache) {
if ($cache) {
$cache_tables = isset($_SESSION['cache_flush']) ? $_SESSION['cache_flush'] : NULL;
// Items that have expired are invalid.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment