Commit 46b23ffb authored by catch's avatar catch

Issue #1131370 by das-peter: Follow-up for segment wildcard counts by [0].

parent 57f44554
......@@ -256,8 +256,8 @@ class MemCacheDrupal implements DrupalCacheInterface {
// Find statically cached wildcards, and determine possibly matching
// wildcards for this cid based on a history of the lengths of past
// valid wildcard flushes in this bin.
if (isset($wildcard_flushes[$this->bin][$wildcard_key])) {
foreach ($wildcard_flushes[$this->bin][$wildcard_key] as $flush_length => $timestamp) {
if (isset($this->wildcard_flushes[$this->bin][$wildcard_key])) {
foreach ($this->wildcard_flushes[$this->bin][$wildcard_key] as $flush_length => $timestamp) {
if ($length >= $flush_length && $timestamp >= ($_SERVER['REQUEST_TIME'] - $this->invalidate)) {
$key = '.wildcard-' . substr($cid, 0, $flush_length);
$wildcard = dmemcache_key($key, $this->bin);
......
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