Hi! I have a website page where you can load race results by clicking a button triggering a GET AJAX request. The response can be cached because most of the time the result does not change.
I enabled almost everything but ESI, including object via Memcached and Cache WP-Admin.
sadly no , ajax call was not meant to be cached by design , you can try use the Force Cache URI with the query string , but can’t if that will surely works
Now could you just help with how to make it dynamic, I don’t understand if we can use wildcards or not, like: /wp-admin/admin-ajax.php?action=my_action&unique_id=*&sessionType=*
This reply was modified 9 months, 1 week ago by Mouk Lab.
I just have a last question, private cache works well for me and loads of users, but for some users after they logged in they still see in the menu “Log in” instead of “Log out”, confirming they are indeed logged in.
I don’t want to use ESI because it’s a real pain to implement, and moreover it works well for me and some users.
No the homepage URL is not in the Force Public Cache settings. Users log in on the home page and then get the home page with the Login button again instead of log out button.
Sorry I forgot to mention that was about the homepage
It’s not force cached. And the link is built on the homepage, it sends you directly to a user, it’s not like /my-profile, it’s /user-a So should I exclude the entire homepage?