[Plugin: WP File Cache] Plugin not caching persistently
Very sad 🙁
I loved your plugin but when I did some extra tests I saw it’s not working at all.
I’ve made a bunch of debugs and @file_put_contents() IS writing cache files, it returns some amount of bytes being written and files ARE being saved on database.
But then something I can’t discover what delete these files, even before a new page load happens. And when I reload the page, cache is empty, $files is an array without any data inside.
On every page load wp_cache_get() always return false on first attempt, my plugin queries data from database and wp_cache_set() it. Next wp_cache_get() attempts return cache, but on next page load cache is gone again.
I’ve tested it on an development environment that only I have access and I know nobody else is accessing it, tried being logged in and off.
Maybe it’s something related to apache or php, glob() simply returns empty array and something deletes files just after they are created. You plugin doesn’t have a chance to file_get_contents() because empty($files) is always true, but I can’t understand what may be deleting them if file_put_contents() creates them.
Do you have any suggestion of what I can try to fix it?
- The topic ‘[Plugin: WP File Cache] Plugin not caching persistently’ is closed to new replies.