Title: Cache Posts in Modal Window
Last modified: August 3, 2024

---

# Cache Posts in Modal Window

 *  Resolved [traces](https://wordpress.org/support/users/dubleg/)
 * (@dubleg)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/cache-posts-in-modal-window/)
 * I’m currently trying to set up the WP Super Cache plugin for my website. The 
   problem I’m facing is that all my single post content is located and opened in
   a modal window via `js-open-window`. As a result, the only file being generated
   by Super Cache is the homepage.
 * I have tried Preload mode, adding new posts, and manually adding posts via Directly
   Cached Files, but nothing works—only the homepage gets cached. Is there anything
   I can do to cache single post content that is displayed in a modal window via`
   admin-ajax.php`?
 * Thanks.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fcache-posts-in-modal-window%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Donncha O Caoimh (a11n)](https://wordpress.org/support/users/donncha/)
 * (@donncha)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/cache-posts-in-modal-window/#post-17936281)
 * This plugin can’t really deal with pages like that, unfortunately. It explicitly
   excludes admin-ajax.php requests because it checks for `is_admin()` which [returns true](https://developer.wordpress.org/reference/functions/is_admin/)
   on those requests.
 * You’ll probably need to implement your own caching system using the AJAX system
   in WordPress but it won’t work as well as serving pages directly as plugins like
   this one can serve the cached page before most of WordPress loads.
 *  Plugin Support [Stef (a11n)](https://wordpress.org/support/users/erania-pinnera/)
 * (@erania-pinnera)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/cache-posts-in-modal-window/#post-17951710)
 * Hi there, [@dubleg](https://wordpress.org/support/users/dubleg/),
 * I’m going to mark this thread as solved. If you have any further questions or
   need more help, you’re welcome to open another thread here. Cheers!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Cache Posts in Modal Window’ is closed to new replies.

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

 * 2 replies
 * 3 participants
 * Last reply from: [Stef (a11n)](https://wordpress.org/support/users/erania-pinnera/)
 * Last activity: [1 year, 9 months ago](https://wordpress.org/support/topic/cache-posts-in-modal-window/#post-17951710)
 * Status: resolved