内核更新

bug修复
This commit is contained in:
2016-10-02 11:50:36 +08:00
parent 7608d4d0f7
commit a70c700b04
27 changed files with 201 additions and 141 deletions

View File

@@ -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;
}

View File

@@ -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'));
}
}

View File

@@ -16,7 +16,6 @@ use think\Exception;
class Memcache extends Driver
{
protected $handler = null;
protected $options = [
'host' => '127.0.0.1',
'port' => 11211,

View File

@@ -15,7 +15,6 @@ use think\cache\Driver;
class Memcached extends Driver
{
protected $handler;
protected $options = [
'host' => '127.0.0.1',
'port' => 11211,

View File

@@ -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;
}
}

View File

@@ -20,7 +20,6 @@ use think\Exception;
*/
class Sqlite extends Driver
{
protected $options = [
'db' => ':memory:',
'table' => 'sharedmemory',

View File

@@ -25,8 +25,6 @@ class Wincache extends Driver
'expire' => 0,
];
protected $tag;
/**
* 架构函数
* @param array $options 缓存参数