mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-08 07:32:48 +08:00
改进缓存标签
This commit is contained in:
5
library/think/cache/Driver.php
vendored
5
library/think/cache/Driver.php
vendored
@@ -170,8 +170,9 @@ abstract class Driver
|
|||||||
$key = 'tag_' . md5($this->tag);
|
$key = 'tag_' . md5($this->tag);
|
||||||
$this->tag = null;
|
$this->tag = null;
|
||||||
if ($this->has($key)) {
|
if ($this->has($key)) {
|
||||||
$value = $this->get($key);
|
$value = explode(',', $this->get($key));
|
||||||
$value .= ',' . $name;
|
$value[] = $name;
|
||||||
|
$value = implode(',', array_unique($value));
|
||||||
} else {
|
} else {
|
||||||
$value = $name;
|
$value = $name;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user