mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-08 15:42:48 +08:00
改进文件缓存的并发删除
This commit is contained in:
3
library/think/cache/driver/File.php
vendored
3
library/think/cache/driver/File.php
vendored
@@ -215,7 +215,10 @@ class File extends Driver
|
|||||||
public function rm($name)
|
public function rm($name)
|
||||||
{
|
{
|
||||||
$filename = $this->getCacheKey($name);
|
$filename = $this->getCacheKey($name);
|
||||||
|
try {
|
||||||
return $this->unlink($filename);
|
return $this->unlink($filename);
|
||||||
|
} catch (\Exception $e) {
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user