Title: admin-ajax.php cache
Last modified: September 25, 2025

---

# admin-ajax.php cache

 *  Resolved [breadf](https://wordpress.org/support/users/breadf/)
 * (@breadf)
 * [8 months ago](https://wordpress.org/support/topic/admin-ajax-php-cache-2/)
 * My site uses WPML. There is an issue with its currency switcher. WPML support
   said LS cached admin-ajax.php file. I am not sure where I can exclude file. Below
   is their reply:
 * > _We have found that the issue is caused by the configuration of the LS Cache
   > plugin, because disabling it solves the problem. Our 2nd-tier specialists recommended
   > excluding the admin-ajax.php file from cache._
   > _If the LS Cache plugin indeed excludes the admin-ajax.php file (this is something
   > you need to ask them), then you must contact them to get the correct configuration
   > for their plugin so the currency switcher can work as expected._
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fadmin-ajax-php-cache-2%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 15 replies - 1 through 15 (of 20 total)

1 [2](https://wordpress.org/support/topic/admin-ajax-php-cache-2/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/admin-ajax-php-cache-2/page/2/?output_format=md)

 *  Plugin Support [litetim](https://wordpress.org/support/users/litetim/)
 * (@litetim)
 * [8 months ago](https://wordpress.org/support/topic/admin-ajax-php-cache-2/#post-18656102)
 * [@breadf](https://wordpress.org/support/users/breadf/) 
   please use 1 ticket only.
   My colleague told you the same thing: [https://wordpress.org/support/topic/ajax-search-not-work-2/](https://wordpress.org/support/topic/ajax-search-not-work-2/)
 *  Thread Starter [breadf](https://wordpress.org/support/users/breadf/)
 * (@breadf)
 * [8 months ago](https://wordpress.org/support/topic/admin-ajax-php-cache-2/#post-18656171)
 * No, this is different. ajax search is solve after I rebuilt the server which 
   was related to Bricks builder’s ajax search function. This one requested by WPML.
   This issue didn’t solve yet.
 *  Plugin Support [litetim](https://wordpress.org/support/users/litetim/)
 * (@litetim)
 * [8 months ago](https://wordpress.org/support/topic/admin-ajax-php-cache-2/#post-18656230)
 * [@breadf](https://wordpress.org/support/users/breadf/) try turning `OFF` this
   setting: [https://docs.litespeedtech.com/lscache/lscwp/cache/#cache-rest-api](https://docs.litespeedtech.com/lscache/lscwp/cache/#cache-rest-api)
 *  Thread Starter [breadf](https://wordpress.org/support/users/breadf/)
 * (@breadf)
 * [8 months ago](https://wordpress.org/support/topic/admin-ajax-php-cache-2/#post-18656555)
 * Thanks
 *  Thread Starter [breadf](https://wordpress.org/support/users/breadf/)
 * (@breadf)
 * [8 months ago](https://wordpress.org/support/topic/admin-ajax-php-cache-2/#post-18657594)
 * [@litetim](https://wordpress.org/support/users/litetim/),
 * WPML support replied:
 * > The Rest API has no impact on the language switcher. The site/WPML is not fetching
   > any info from an external server via the Rest API when switching currencies.
   > I’d recommend explaining to them that if LS Cache is deactivated, the currency
   > switcher works correctly, so there must be another configuration causing this
   > behavior.
 *  Plugin Support [qtwrk](https://wordpress.org/support/users/qtwrk/)
 * (@qtwrk)
 * [8 months ago](https://wordpress.org/support/topic/admin-ajax-php-cache-2/#post-18659327)
 * you are not using WPML’s multi-currency ( WCML ) ? because it supposed to set
   cookies for currency but I don’t see it , how did you create the mutli-currency?
 *  Thread Starter [breadf](https://wordpress.org/support/users/breadf/)
 * (@breadf)
 * [8 months ago](https://wordpress.org/support/topic/admin-ajax-php-cache-2/#post-18659335)
 * I use “WPML Multilingual & Multicurrency for WooCommerce”, because I set show
   currencies based on site language, not client location, so there is no currency
   cookie.
 *  Plugin Support [qtwrk](https://wordpress.org/support/users/qtwrk/)
 * (@qtwrk)
 * [8 months ago](https://wordpress.org/support/topic/admin-ajax-php-cache-2/#post-18659337)
 * huh ? how do you pair 7 currencies over 2 languages
 * anyway , this will require cookie to differentiate the currency properly
 *  Thread Starter [breadf](https://wordpress.org/support/users/breadf/)
 * (@breadf)
 * [8 months ago](https://wordpress.org/support/topic/admin-ajax-php-cache-2/#post-18659338)
 * [@litetim](https://wordpress.org/support/users/litetim/) I think “AJAX Cache 
   TTL” may be more related to what WPML mentioned, but I didn’t see a “admin-ajax.
   php/?action=*” in browser console, just “admin-ajax.php”.
 *  Thread Starter [breadf](https://wordpress.org/support/users/breadf/)
 * (@breadf)
 * [8 months ago](https://wordpress.org/support/topic/admin-ajax-php-cache-2/#post-18659345)
 * I am not sure the mechanism WPML uses regarding the currency control.
 *  Plugin Support [qtwrk](https://wordpress.org/support/users/qtwrk/)
 * (@qtwrk)
 * [8 months ago](https://wordpress.org/support/topic/admin-ajax-php-cache-2/#post-18659348)
 * [https://wpml.org/wcml-hook/wcml_user_store_strategy/](https://wpml.org/wcml-hook/wcml_user_store_strategy/)
 * please try this code snippet to enable currency cookie support.
 *  Thread Starter [breadf](https://wordpress.org/support/users/breadf/)
 * (@breadf)
 * [8 months ago](https://wordpress.org/support/topic/admin-ajax-php-cache-2/#post-18659349)
 * [@qtwrk](https://wordpress.org/support/users/qtwrk/) Thanks. I assume this will
   create 2 * 7 variations of page, right?
 *  Plugin Support [qtwrk](https://wordpress.org/support/users/qtwrk/)
 * (@qtwrk)
 * [8 months ago](https://wordpress.org/support/topic/admin-ajax-php-cache-2/#post-18659350)
 * yes , unfortunately that’s the cost for multi-language and multi-currency
 *  Thread Starter [breadf](https://wordpress.org/support/users/breadf/)
 * (@breadf)
 * [8 months ago](https://wordpress.org/support/topic/admin-ajax-php-cache-2/#post-18659351)
 * I see. I will check with WPML if there is a way to expose “ajax action” in the
   url. Then no need for cookie way, right?
    -  This reply was modified 8 months ago by [breadf](https://wordpress.org/support/users/breadf/).
 *  Plugin Support [qtwrk](https://wordpress.org/support/users/qtwrk/)
 * (@qtwrk)
 * [8 months ago](https://wordpress.org/support/topic/admin-ajax-php-cache-2/#post-18659353)
 * no , either way this will require a cookie to set like an “anchor” to properly
   differentiate the language and currency
 * in the past I have been spent quite some time and effort on this issue , but 
   due to technical limitation , there is no other way out 🙁

Viewing 15 replies - 1 through 15 (of 20 total)

1 [2](https://wordpress.org/support/topic/admin-ajax-php-cache-2/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/admin-ajax-php-cache-2/page/2/?output_format=md)

The topic ‘admin-ajax.php cache’ is closed to new replies.

 * ![](https://ps.w.org/litespeed-cache/assets/icon-256x256.png?rev=2554181)
 * [LiteSpeed Cache](https://wordpress.org/plugins/litespeed-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/litespeed-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/litespeed-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/litespeed-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/litespeed-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/litespeed-cache/reviews/)

## Tags

 * [cache](https://wordpress.org/support/topic-tag/cache/)

 * 20 replies
 * 3 participants
 * Last reply from: [qtwrk](https://wordpress.org/support/users/qtwrk/)
 * Last activity: [7 months, 4 weeks ago](https://wordpress.org/support/topic/admin-ajax-php-cache-2/page/2/#post-18664226)
 * Status: resolved