do_action('rrze.log.error',__('{plugin}: The directory could not be created.','rrze-cache'),['plugin'=>'rrze-cache','method'=>__METHOD__,'$filePath'=>$filePath]);
if(!wp_mkdir_p($filePath)){
do_action('rrze.log.error',__('{plugin}: The directory could not be created.','rrze-cache'),['plugin'=>'rrze-cache','method'=>__METHOD__,'$filePath'=>$filePath]);
do_action('rrze.log.error',__('{plugin}: The directory could not be created.','rrze-cache'),['plugin'=>'rrze-cache','method'=>__METHOD__,'File::$cacheDir'=>self::$cacheDir]);
if(!wp_mkdir_p(self::$cacheDir)){
do_action('rrze.log.error',__('{plugin}: The directory could not be created.','rrze-cache'),['plugin'=>'rrze-cache','method'=>__METHOD__,'File::$cacheDir'=>self::$cacheDir]);
returnfalse;
}
...
...
@@ -129,8 +129,8 @@ final class File
'timeout'
);
if(!$handle=@fopen($file,'wb')){
do_action('rrze.log.error',__('{plugin}: The timeout cache file could not be written.','rrze-cache'),['plugin'=>'rrze-cache','method'=>__METHOD__,'$file'=>$file]);
if(!$handle=@fopen($file,'wb')){
do_action('rrze.log.error',__('{plugin}: The timeout cache file could not be written.','rrze-cache'),['plugin'=>'rrze-cache','method'=>__METHOD__,'$file'=>$file]);
returnfalse;
}
...
...
@@ -151,8 +151,8 @@ final class File
*/
protectedstaticfunctionwriteFile($file,$data)
{
if(!$handle=@fopen($file,'wb')){
do_action('rrze.log.error',__('{plugin}: The cache file could not be written.','rrze-cache'),['plugin'=>'rrze-cache','method'=>__METHOD__,'$file'=>$file]);
if(!$handle=@fopen($file,'wb')){
do_action('rrze.log.error',__('{plugin}: The cache file could not be written.','rrze-cache'),['plugin'=>'rrze-cache','method'=>__METHOD__,'$file'=>$file]);