Title: No persistent cache when using admin-ajax.php
Last modified: August 21, 2016

---

# No persistent cache when using admin-ajax.php

 *  [joepske83](https://wordpress.org/support/users/joepske83/)
 * (@joepske83)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/no-persistent-cache-when-using-admin-ajaxphp/)
 * My site is using a few calls through the wordpress ajax system through admin-
   ajax.php.
 * The functions i use are in a seperate call ajax_functions.php.
 * When i test the object caching (wp_cache_get and wp_cache_set) in a normal page
   template, all is working fine, but for some reason the data is always empty when
   using the same system in my ajax calls through ajax_functions.php.
 * Is this a wordpress thing or does somebody have any idea why this is the case?
 * I use object caching, enabled in the module.
 * Thanks in advance.
 * [http://wordpress.org/plugins/w3-total-cache/](http://wordpress.org/plugins/w3-total-cache/)

The topic ‘No persistent cache when using admin-ajax.php’ is closed to new replies.

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

## Tags

 * [ajax](https://wordpress.org/support/topic-tag/ajax/)
 * [empty](https://wordpress.org/support/topic-tag/empty/)
 * [object](https://wordpress.org/support/topic-tag/object/)
 * [w3totalcache](https://wordpress.org/support/topic-tag/w3totalcache/)

 * 0 replies
 * 1 participant
 * Last reply from: [joepske83](https://wordpress.org/support/users/joepske83/)
 * Last activity: [12 years, 8 months ago](https://wordpress.org/support/topic/no-persistent-cache-when-using-admin-ajaxphp/)
 * Status: not resolved