Clearing Memcached for a specific page
-
We have a page (the My Account page on WooCommerce) which shows all products customers purchased. Memcached is caching that page so customers aren’t able to see their latest products on the page right after purchase.
Is there a way to clear the Memcached cache every time that page is loaded? Or to clear the cache when a purchase is made or a user is added to a specific group (they are added to a new group upon making a purchase)?
When we were still on cPanel, we managed to accomplish this by calling a little script that programmatically cleared the Memcached cache. However, after the move over to the new Site Tools system, the script is no longer working – seems like Memcached php functions like memcache_connect() aren’t available to us as php fails with a fatal error saying that function is undefined. Which is strange since the Memcached module for php is installed on the server so that function should be available for us to call and programmatically clear the cache.
Looking for help on any way of accomplishing this.
Thanks in advance.The page I need help with: [log in to see the link]
- The topic ‘Clearing Memcached for a specific page’ is closed to new replies.