改进缓存的tag缓存时间

This commit is contained in:
thinkphp
2017-09-05 11:52:34 +08:00
parent 26482e4ed0
commit 13ea433ad6

View File

@@ -168,7 +168,7 @@ abstract class Driver
} else { } else {
$value = array_unique(array_merge($this->getTagItem($name), $keys)); $value = array_unique(array_merge($this->getTagItem($name), $keys));
} }
$this->set($key, implode(',', $value)); $this->set($key, implode(',', $value), 0);
} }
return $this; return $this;
} }
@@ -191,7 +191,7 @@ abstract class Driver
} else { } else {
$value = $name; $value = $name;
} }
$this->set($key, $value); $this->set($key, $value, 0);
} }
} }