mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-06 23:02:48 +08:00
修正文件缓存类的clear方法
This commit is contained in:
2
library/think/cache/driver/File.php
vendored
2
library/think/cache/driver/File.php
vendored
@@ -187,7 +187,7 @@ class File
|
|||||||
*/
|
*/
|
||||||
public function clear()
|
public function clear()
|
||||||
{
|
{
|
||||||
$path = $this->options['temp'];
|
$path = $this->options['path'];
|
||||||
if ($dir = opendir($path)) {
|
if ($dir = opendir($path)) {
|
||||||
while ($file = readdir($dir)) {
|
while ($file = readdir($dir)) {
|
||||||
$check = is_dir($file);
|
$check = is_dir($file);
|
||||||
|
|||||||
Reference in New Issue
Block a user