获取缓存标签的时候过滤无效的缓存标识

This commit is contained in:
水平凡
2017-08-09 10:13:42 +08:00
committed by ThinkPHP
parent dcd1b8af9c
commit 28ac7c2fad

View File

@@ -191,7 +191,7 @@ abstract class Driver
$key = 'tag_' . md5($tag);
$value = $this->get($key);
if ($value) {
return explode(',', $value);
return array_filter(explode(',', $value));
} else {
return [];
}