Hi Everyone and Support Team,
I recently discovered an issue when publishing a product to WooCommerce via the Printify platform. It wipes all the cache, including static pages.
I tested this, and it seems the plugin is calling a hook or action, but I’m not an advanced coder, so I can't pinpoint the exact cause. This behavior is quite unacceptable. The cache should only be cleared for relevant pages—maybe the tags, categories, or shop pages—but not for all products.
I currently have about 200 products,(imagine i put 1000) and rebuilding the cache is a real pain. It takes nearly an hour to rebuild, even on a 4GB fast server dedicated to this project. This severely impacts performance and marketing efficiency.
When I contacted support, they weren’t helpful. They suggested I hire a developer to fix or rewrite the code. However, this issue seems like something the plugin itself should handle better.
Even minor edits, like changing the title of a published product in the Printify platform, completely wipe the cache. I reviewed the server logs and captured what’s happening, but I don’t know how to prevent it.
For context, the server team ruled out other issues. I’m working with a clean installation of WooCommerce, and the only plugin enabled is Printify, yet the problem persists.
Here’s the information from my server admin:
- - [25/Nov/2024:08:45:19 +0000] "GET /xxx/ HTTP/1.0" 200 587485 "https://printify.com/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36"
- - [25/Nov/2024:08:45:23 +0000] "POST /?wc-ajax=get_variation HTTP/1.0" 200 3133 "https://xxx/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36"?
- - [25/Nov/2024:08:45:23 +0000] "POST /?wc-ajax=get_refreshed_fragments HTTP/1.0" 200 1459 "https://xxx/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36"
These AJAX POST requests to endpoints like /wc-ajax=get_variation and /wc-ajax=get_refreshed_fragments can potentially cause cache purging under certain conditions.
If any of you guys or maybe plugin support know what to do, let me know,
Conny
-
This topic was modified 1 day, 14 hours ago by Conny.