Skip to content

Commit b56d75a

Browse files
committed
修正Redis驱动
1 parent 15aae57 commit b56d75a

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

library/think/App.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
*/
2121
class App extends Container
2222
{
23-
const VERSION = '5.1.31 LTS';
23+
const VERSION = '5.1.32 LTS';
2424

2525
/**
2626
* 当前模块路径

library/think/cache/driver/Redis.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ public function clear($tag = null)
204204
{
205205
if ($tag) {
206206
// 指定标签清除
207-
$keys = $this->getTagItems($tag);
207+
$keys = $this->getTagItem($tag);
208208

209209
$this->handler->del($keys);
210210

library/think/cache/driver/Wincache.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -166,10 +166,10 @@ public function clear($tag = null)
166166
$tagName = $this->getTagkey($tag);
167167
$this->rm($tagName);
168168
return true;
169-
} else {
170-
$this->writeTimes++;
171-
return wincache_ucache_clear();
172169
}
170+
171+
$this->writeTimes++;
172+
return wincache_ucache_clear();
173173
}
174174

175175
}

library/think/cache/driver/Xcache.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,7 @@ public function clear($tag = null)
163163
foreach ($keys as $key) {
164164
xcache_unset($key);
165165
}
166+
166167
$this->rm($this->getTagKey($tag));
167168
return true;
168169
}

0 commit comments

Comments
 (0)