mirror of
https://github.com/flextype/flextype.git
synced 2025-08-08 06:06:45 +02:00
feat(cache): add PHPArray cache driver #557
This commit is contained in:
@@ -69,13 +69,15 @@ class Driver implements ExtendedCacheItemPoolInterface, AggregatablePoolInterfac
|
||||
{
|
||||
$file_path = $this->getFilePath($item->getKey(), true);
|
||||
|
||||
try{
|
||||
$content = include $file_path;
|
||||
}catch (PhpfastcacheIOException $e){
|
||||
return null;
|
||||
}
|
||||
$value = null;
|
||||
|
||||
return $content;
|
||||
set_error_handler(static function () {});
|
||||
|
||||
$value = include $file_path;
|
||||
|
||||
restore_error_handler();
|
||||
|
||||
return $value;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user