Title: Ajax or PHP
Last modified: August 5, 2020

---

# Ajax or PHP

 *  [comyu](https://wordpress.org/support/users/comyu/)
 * (@comyu)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/ajax-or-php/)
 * Out of an article of the Autooptimize Plugin:
 * Cart Widget
    If the cart widget is updated via Ajax, it works fine with caching.
   But if the cart widget uses PHP to update the cart, you need to exclude woocommerce_items_in_cart
   cookie as below.
 * Does OceanWP use Ajax, e. g. does this work without excluding the cookie?

Viewing 1 replies (of 1 total)

 *  [Abhishek](https://wordpress.org/support/users/abhikr781/)
 * (@abhikr781)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/ajax-or-php/#post-13216913)
 * Hi,
 * Oceanwp uses Ajax. The mini cart uses the ajax to update their items.

Viewing 1 replies (of 1 total)

The topic ‘Ajax or PHP’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/oceanwp/4.1.6/screenshot.png)
 * OceanWP
 * [Support Threads](https://wordpress.org/support/theme/oceanwp/)
 * [Active Topics](https://wordpress.org/support/theme/oceanwp/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/oceanwp/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/oceanwp/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Abhishek](https://wordpress.org/support/users/abhikr781/)
 * Last activity: [5 years, 10 months ago](https://wordpress.org/support/topic/ajax-or-php/#post-13216913)
 * Status: not resolved