mirror of
https://github.com/yiisoft/yii.git
synced 2026-03-03 06:44:07 +01:00
PHP 8.1 compatibility fix for CFileCache
This commit is contained in:
@@ -130,7 +130,7 @@ class CFileCache extends CCache
|
||||
{
|
||||
$cacheFile=$this->getCacheFile($key);
|
||||
if(($time=$this->filemtime($cacheFile))>time())
|
||||
return @file_get_contents($cacheFile,false,null,$this->embedExpiry ? 10 : null);
|
||||
return @file_get_contents($cacheFile,false,null,$this->embedExpiry ? 10 : 0);
|
||||
elseif($time>0)
|
||||
@unlink($cacheFile);
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user