Closed DePalmo closed 3 years ago
Hello curious contributor ! Since it seems to be your first contribution, make sure that you've been:
Yeah,
This option will make advanced file verification before writing the file on the disk, this is usually enabled when there's a high conflict risk due to an intense I/O activity.
Except if you think that there's a risk of failing filesystem this option is not very useful.
It uses a mechanism of "temporary name then write and rename" instead of "direct file write".
So this behavior is totally normal and you may furtively notice a sub-folder called "tmp_xxxxxxxxxxx" during write operations.
Cheers, Georges
Thank you for your response. The problem is that after the code executes without any issues, there's no _cache
folder at all. It's not being created and no tmp_
folder is there either.
The tmp_ file (sorry) is only created during script execution then immediately renamed to its true name.
This is why this can slow down a bit your website.
Configuration
My question I init the library like this:
Then use it like this:
Up until I started using
secureFileManipulation
, I always saw a folder_cache
being created and used, but when I setsecureFileManipulation
totrue
, that folder is not being created and I can't find cached files. I tested the caching code and it appears working, but the website feels a bit slower than before. Please note that I am caching some strings and my code would call database multiple times, so with your caching library, this was speed up by a lot.So my question is: is it normal that I do not see
_cache
folder being created and used, when I am usingsecureFileManipulation
? If yes, when are the files then stored?