fix glob problem in file cache driver.
This commit is contained in:
parent
04f21380ca
commit
471b7aaa81
|
@ -71,7 +71,11 @@ public function delete($id)
|
||||||
*/
|
*/
|
||||||
public function sweep($expiration)
|
public function sweep($expiration)
|
||||||
{
|
{
|
||||||
foreach (glob($this->path.'*') as $file)
|
$files = glob($this->path.'*');
|
||||||
|
|
||||||
|
if ($files === false) return;
|
||||||
|
|
||||||
|
foreach ($files as $file)
|
||||||
{
|
{
|
||||||
if (filetype($file) == 'file' and filemtime($file) < $expiration)
|
if (filetype($file) == 'file' and filemtime($file) < $expiration)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue