Is your site served from / or a sub directory?
Does it have a static page for the front page, and a separate posts page?
Run debugging. The debug log may explain why it is deleting everything.
Sub directory. Separate posts page. I didn’t see anything helpful in the debug log. I have found another working option for our caching needs though, so won’t pursue this further at this time.
Thanks, @notanonymous for the reply. Sorry that we weren’t able to reply in time and help you.
Hello @notanonymous @donncha
I was with same problem, after update product, all cache files deleted. I found Rank Math plugin delete all this. If someone have problem with that and have rank math plugin, in your theme functions add this:
add_filter( 'rank_math/sitemap/enable_caching', '__return_false');
Thank you for the tip @dowista !
I will now close this thread. @dowista if you have any follow-ups please start a new thread.
Thank you!