内核更新
bug修复
This commit is contained in:
10
core/library/think/cache/driver/File.php
vendored
10
core/library/think/cache/driver/File.php
vendored
@@ -221,9 +221,13 @@ class File extends Driver
|
||||
$this->rm('tag_' . md5($tag));
|
||||
return true;
|
||||
}
|
||||
$fileLsit = (array) glob($this->options['path'] . '*');
|
||||
foreach ($fileLsit as $path) {
|
||||
is_file($path) && unlink($path);
|
||||
$files = (array) glob($this->options['path'] . ($this->options['prefix'] ? $this->options['prefix'] . DS : '') . '*');
|
||||
foreach ($files as $path) {
|
||||
if (is_dir($path)) {
|
||||
array_map('unlink', glob($path . '/*.php'));
|
||||
} else {
|
||||
unlink($path);
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
2
core/library/think/cache/driver/Lite.php
vendored
2
core/library/think/cache/driver/Lite.php
vendored
@@ -180,6 +180,6 @@ class Lite extends Driver
|
||||
$this->rm('tag_' . md5($tag));
|
||||
return true;
|
||||
}
|
||||
array_map("unlink", glob($this->options['path'] . $this->options['prefix'] . '*.php'));
|
||||
array_map("unlink", glob($this->options['path'] . ($this->options['prefix'] ? $this->options['prefix'] . DS : '') . '*.php'));
|
||||
}
|
||||
}
|
||||
|
||||
1
core/library/think/cache/driver/Memcache.php
vendored
1
core/library/think/cache/driver/Memcache.php
vendored
@@ -16,7 +16,6 @@ use think\Exception;
|
||||
|
||||
class Memcache extends Driver
|
||||
{
|
||||
protected $handler = null;
|
||||
protected $options = [
|
||||
'host' => '127.0.0.1',
|
||||
'port' => 11211,
|
||||
|
||||
@@ -15,7 +15,6 @@ use think\cache\Driver;
|
||||
|
||||
class Memcached extends Driver
|
||||
{
|
||||
protected $handler;
|
||||
protected $options = [
|
||||
'host' => '127.0.0.1',
|
||||
'port' => 11211,
|
||||
|
||||
11
core/library/think/cache/driver/Redis.php
vendored
11
core/library/think/cache/driver/Redis.php
vendored
@@ -22,7 +22,6 @@ use think\cache\Driver;
|
||||
*/
|
||||
class Redis extends Driver
|
||||
{
|
||||
protected $handler = null;
|
||||
protected $options = [
|
||||
'host' => '127.0.0.1',
|
||||
'port' => 6379,
|
||||
@@ -174,14 +173,4 @@ class Redis extends Driver
|
||||
return $this->handler->flushDB();
|
||||
}
|
||||
|
||||
/**
|
||||
* 返回句柄对象,可执行其它高级方法
|
||||
*
|
||||
* @access public
|
||||
* @return object
|
||||
*/
|
||||
public function handler()
|
||||
{
|
||||
return $this->handler;
|
||||
}
|
||||
}
|
||||
|
||||
1
core/library/think/cache/driver/Sqlite.php
vendored
1
core/library/think/cache/driver/Sqlite.php
vendored
@@ -20,7 +20,6 @@ use think\Exception;
|
||||
*/
|
||||
class Sqlite extends Driver
|
||||
{
|
||||
|
||||
protected $options = [
|
||||
'db' => ':memory:',
|
||||
'table' => 'sharedmemory',
|
||||
|
||||
2
core/library/think/cache/driver/Wincache.php
vendored
2
core/library/think/cache/driver/Wincache.php
vendored
@@ -25,8 +25,6 @@ class Wincache extends Driver
|
||||
'expire' => 0,
|
||||
];
|
||||
|
||||
protected $tag;
|
||||
|
||||
/**
|
||||
* 架构函数
|
||||
* @param array $options 缓存参数
|
||||
|
||||
Reference in New Issue
Block a user