Skip to content

Commit

Permalink
改进缓存驱动
Browse files Browse the repository at this point in the history
  • Loading branch information
liu21st committed Apr 28, 2019
1 parent 4f3592c commit 135eee6
Show file tree
Hide file tree
Showing 3 changed files with 8 additions 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.35 LTS';
const VERSION = '5.1.36 LTS';

/**
* 当前模块路径
Expand Down
4 changes: 2 additions & 2 deletions library/think/Validate.php
Original file line number Diff line number Diff line change
Expand Up @@ -1514,12 +1514,12 @@ protected function getScene($scene = '')
$scene = $this->currentScene;
}

$this->only = $this->append = $this->remove = [];

if (empty($scene)) {
return;
}

$this->only = $this->append = $this->remove = [];

if (method_exists($this, 'scene' . $scene)) {
call_user_func([$this, 'scene' . $scene]);
} elseif (isset($this->scene[$scene])) {
Expand Down
5 changes: 5 additions & 0 deletions library/think/cache/Driver.php
Original file line number Diff line number Diff line change
Expand Up @@ -360,4 +360,9 @@ public function getWriteTimes()
{
return $this->writeTimes;
}

public function __call($method, $args)
{
return call_user_func_array([$this->handler, $method], $args);
}
}

0 comments on commit 135eee6

Please sign in to comment.