Skip to content

Commit

Permalink
改进缓存类tag方法
Browse files Browse the repository at this point in the history
  • Loading branch information
liu21st committed May 26, 2019
1 parent b6fd884 commit 04cb0b7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion library/think/App.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
*/
class App extends Container
{
const VERSION = '5.1.36 LTS';
const VERSION = '5.1.37 LTS';

/**
* 当前模块路径
Expand Down
2 changes: 0 additions & 2 deletions library/think/cache/Driver.php
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,6 @@ protected function setTagItem($name)
{
if ($this->tag) {
$key = $this->getTagkey($this->tag);
$prev = $this->tag;
$this->tag = null;

if ($this->has($key)) {
Expand All @@ -266,7 +265,6 @@ protected function setTagItem($name)
}

$this->set($key, $value, 0);
$this->tag = $prev;
}
}

Expand Down

1 comment on commit 04cb0b7

@jjonline
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

能不能不要这么坑,5.1.37版3天前就发布了,然后这个commit 11小时前才提交,再然后这个commit竟然被合并进5.1.37版去了。。。。

Please sign in to comment.