Title: Cache file not created
Last modified: November 18, 2020

---

# Cache file not created

 *  Resolved [cizsolt](https://wordpress.org/support/users/cizsolt/)
 * (@cizsolt)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/cache-file-not-created/)
 * Hello,
 * I am using Ajax Load More plugin which caches my post content IF cache file is
   not found on the server. When trying to access a NON EXISTING cache file it is
   redirected by the WP 404 Auto Redirect plugin to something similar and the cache
   file is never created. I do need to exclude `/wp-content/uploads/alm-cache/` 
   from the automatic redirecttions so if something is not found will return 404
   and the cache files can be created as it should.
 * How can I do this?
 * Thank you for your help in advance!
    -  This topic was modified 5 years, 6 months ago by [cizsolt](https://wordpress.org/support/users/cizsolt/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fcache-file-not-created%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Thread Starter [cizsolt](https://wordpress.org/support/users/cizsolt/)
 * (@cizsolt)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/cache-file-not-created/#post-13722452)
 * I figured it out thanks to reading the readme.txt file and managed to solve it
   with the following filter (just in case anyone else has the same issue):
 *     ```
       // *** Do not load the 404 Redirect plugin if the 404 URL contains 'cache'
       add_filter('wp404arsp/init', 'my_404_no_init', 10, 2);
       	function my_404_no_init($init, $query){
       		// Developers: Print $query array for more request context
       		 if (stripos($query['request']['url'], 'cache') !== false) {
       			$init = false;
       		 }
       		return $init;
       }
       ```
   

Viewing 1 replies (of 1 total)

The topic ‘Cache file not created’ is closed to new replies.

 * ![](https://ps.w.org/wp-404-auto-redirect-to-similar-post/assets/icon-256x256.
   png?rev=1972642)
 * [WP 404 Auto Redirect to Similar Post](https://wordpress.org/plugins/wp-404-auto-redirect-to-similar-post/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-404-auto-redirect-to-similar-post/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-404-auto-redirect-to-similar-post/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-404-auto-redirect-to-similar-post/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-404-auto-redirect-to-similar-post/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-404-auto-redirect-to-similar-post/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [cizsolt](https://wordpress.org/support/users/cizsolt/)
 * Last activity: [5 years, 6 months ago](https://wordpress.org/support/topic/cache-file-not-created/#post-13722452)
 * Status: resolved