This is the code creating the cache folder with the wrong permissions:
mkdir($saveFolder, 02775);
When I check folder permissions using ls -la , I get:
ls -la
drwxr-sr-x
But instead, I expect:
drwxrwsr-x
For some unclear reasons (at least for me) changing the code to
mkdir($saveFolder); chmod($saveFolder, 02775);
solved a problem.
Now I get the correct permissions set in the folder:
Source: https://habr.com/ru/post/1232025/More articles:CFDictionary will not connect to NSDictionary (Swift 2.0 / iOS9) - swiftProtocol Based Binding in ASP.NET 5 / MVC 6 - c #Is it legal to re-declare a member class after it is defined? - c ++No February 30, 1712 in the .NET Swedish calendar? - dateLinq to Dictionary with key and list - dictionaryVS Cordova IOS Remote Build - iosCss and JS files take too long - phpHow to uniquely identify a stream in jvmti - javahow to replace latin unicode character with [az] characters - javaAzure WebJob launches old code - azureAll Articles