erua97
Forum Replies Created
-
Thanks for the details Marko!
I didn’t know that GC also expires the cache. Everything works as expected now!
I mark the topic as resolved
Have a nice day!I would like to point out that I realized this thanks to WP Crontrol : I launched the suspicious CRON tasks one by one and I noticed that the GC for Cache Page was adding _old to my files
Hello Marko,
This topic has nothing to do with my previous one.
I can’t tell you how to reproduce this because I don’t know if it’s a bug or if it’s intended by the developers. I thought garbage collection deleted _old files, but I’m surprised to see that this interval actually expires my cache files.I have carried out several tests since yesterday, and I have modified my garbage collection settings, the interval is now 1 year (it was 1 hour before). The problem has not recurred since, all my cached files are still valid.
However, I now wonder if this will have an impact on what I expect from the plugin:
- Automatically prime the page cache has an interval of 900 seconds: if the cache is not obsolete, can you confirm that the cache will be regenerated to serve “hot” cache?
- The garbage collection for minified files is 86400, could this be a problem if my page cache has a validity of 1 year? I have difficulty understanding what can link these two elements? (minified files and page cache files)
- I also use object cache. My question is the same as the previous point: do I need to set the object cache lifetime and garbage collection to the same settings as the page cache?
I am very close to making the plugin work exactly as I want, thanks again for your help Marko !
Forum: Plugins
In reply to: [W3 Total Cache] An unknown action purges my cache several times a dayI think I have identified the chain of events that is causing the problem:
The acf-frontend-form-element-pro plugin generates the ‘acf_update_field’ action.
In response to this action, the advanced-custom-fields plugin calls the wp_insert_post function from the acf-field-functions.php file.
The wp_insert_post function generates the ‘save_post’ action.
The W3 Total Cache plugin intercepts the ‘save_post’ action via the W3TC\Util_AttachToActions–on_post_change hook and triggers the ‘w3tc_flush_post’ action.What remains for me to do?
Life is not easy when you are not a dev 🙁Forum: Plugins
In reply to: [W3 Total Cache] An unknown action purges my cache several times a dayHello !
Is there a way to prevent the flush_post_cache function for all actions that call this function? My problem is still not resolved and I have not found any solution despite a lot of research…
Thank you so much…
Update :
I was able to identify the problem. Without being able to resolve it at the moment.
The problem I presented occurs when one of my frontend-admin forms is used. (these forms are used to create woocommerce products via the frontend).
I didn’t realize this since this also happens when the form is invalid (incomplete required fields) but the user tries to submit it anyway.
Result I receive nothing on the admin side but the form still creates a post (which is not saved in my database) and then a flush_post is launched, which purges ALL my pages cached by W3 Total Cache.
How can I fix this problem?
Forum: Plugins
In reply to: [W3 Total Cache] An unknown action purges my cache several times a dayOf course, it is with pleasure, well deserved
Forum: Plugins
In reply to: [W3 Total Cache] An unknown action purges my cache several times a dayI asked for help on this plugin’s forum.
If I have something new and this thread isn’t closed yet, then I’ll post some updates, if that can helps anyone…!
Thanks again for your help, in addition to being an excellent plugin, your support is really top notch. Thanks @vmarko !
Forum: Plugins
In reply to: [W3 Total Cache] An unknown action purges my cache several times a dayHello @vmarko,
Thanks again. I checked my posts table, all these posts are not present, the query tells me that all these posts do not exist.
I dont know what to do…
Regarding the code that you provided via Github, I really have very little knowledge of coding, so I admit that I don’t really know what to do with it.
How to filter these “posts” from purging while they “don’t exist”? That’s a bit disturbing?
Thanks again for your help Marko!
Forum: Plugins
In reply to: [W3 Total Cache] An unknown action purges my cache several times a dayHi Marko and thank you for your response!
I’m sharing a screenshot below of my purge policy : https://snipboard.io/EB7lXz.jpg
Please note though, I have tried unchecking everything but it keeps happening.
The home page link is: https://letresoretudiant.fr/
Also note that, as I have just visited this page as a visitor, the cache may still be active when you go to visit for yourself
I remain at your disposal for further information.