Title: WP Super Cache &amp; Ninja Forms
Last modified: October 3, 2017

---

# WP Super Cache & Ninja Forms

 *  Resolved [mjgraves](https://wordpress.org/support/users/mjgraves/)
 * (@mjgraves)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/wp-super-cache-ninja-forms/)
 * After the most recent round of updates I’m seeing a problem with using both Ninja
   Forms and WP Super Cache. The site is largely static, so I preload the cache.
   However, in the past few weeks I see the WP Super Cache spends a long time processing
   the following posts:
 * [https://www.zipdx.info/nf_sub/46107/](https://www.zipdx.info/nf_sub/46107/)
   
   [https://www.zipdx.info/nf_sub/46106/](https://www.zipdx.info/nf_sub/46106/) 
   [https://www.zipdx.info/nf_sub/46105/](https://www.zipdx.info/nf_sub/46105/) 
   [https://www.zipdx.info/nf_sub/46104/](https://www.zipdx.info/nf_sub/46104/) 
   [https://www.zipdx.info/nf_sub/46103/](https://www.zipdx.info/nf_sub/46103/) 
   [https://www.zipdx.info/nf_sub/46102/](https://www.zipdx.info/nf_sub/46102/) 
   [https://www.zipdx.info/nf_sub/46101/](https://www.zipdx.info/nf_sub/46101/)
 * While the site is 500 pages & posts, WPSC is processing thousands of these nf_sub
   files.
 * I inquired with Ninja Forms about this, who advised me to set /nf_sub/ as a string
   in the exclusions setting. That works, to the extent that WPSC no longer creates
   cache files…but the pre-load process still takes a very long time. Literally 
   hours.
 * This can’t be right. Is there some more intelligent way of handling this matter?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fwp-super-cache-ninja-forms%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Thread Starter [mjgraves](https://wordpress.org/support/users/mjgraves/)
 * (@mjgraves)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/wp-super-cache-ninja-forms/#post-9553528)
 * According to Ninja Forms support:
 * “It seems that the reason that these are getting created is due to the submission
   data being stored as post data, so the caching plugin is trying to precache unneeded
   post data from Ninja Forms. I would recommend contacting the WP Super Cache team
   and see if they have any information to help you configure their plugin efficiently
   to only cache actual posts.”
 *  Thread Starter [mjgraves](https://wordpress.org/support/users/mjgraves/)
 * (@mjgraves)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/wp-super-cache-ninja-forms/#post-9559332)
 * I left WP-Super cache pre-loading overnight. It ran continuously, churning through
   nearly 20,00 “posts” and was still going 16 hours later.
 *  Thread Starter [mjgraves](https://wordpress.org/support/users/mjgraves/)
 * (@mjgraves)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/wp-super-cache-ninja-forms/#post-9569851)
 * Buehler? Anyone?
 *  Plugin Author [Donncha O Caoimh (a11n)](https://wordpress.org/support/users/donncha/)
 * (@donncha)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/wp-super-cache-ninja-forms/#post-9570323)
 * The preload function never used the rejected strings list but [I just added some code](https://github.com/Automattic/wp-super-cache/pull/407/files)
   to check that list now.
 * Grab the development version from the download page at [https://odd.blog/y/2o](https://odd.blog/y/2o)(
   instructions are included) and the preload should work much faster. I’d like 
   to hear if it helped as this will obviously be useful for others too.
 *  Thread Starter [mjgraves](https://wordpress.org/support/users/mjgraves/)
 * (@mjgraves)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/wp-super-cache-ninja-forms/#post-9570780)
 * Many thanks! After installing the beta I started then pre-load process. It’s 
   clearly still chewing through a lot of posts. It processed 4,000 posts in one
   hour. Last time it processed 20,000 posts in 16 hours.
 *  Thread Starter [mjgraves](https://wordpress.org/support/users/mjgraves/)
 * (@mjgraves)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/wp-super-cache-ninja-forms/#post-9577745)
 * For some reason using the beta garbage collection was still enabled even in pre-
   load mode. Thus the preloaded files were automatically removed, defeating the
   purpose of the preload.
 * I uninstalled the beta plugin. Wiped the cache. Then installed it anew. Preloading
   is still taking vastly too long. 19 hours for what it thinks of as 34300 posts.
   At least garbage collection is not running, so the cache persists.
 * 99% of that post content is form submission data that should not be retained.
   I expect that manually pruning the database is the only effective solution.
 *  Thread Starter [mjgraves](https://wordpress.org/support/users/mjgraves/)
 * (@mjgraves)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/wp-super-cache-ninja-forms/#post-9578806)
 * I was eventually able to eliminate all the custom posts generated by the Ninja
   Forms plugin. That eliminated 56,000+ posts. Now preloading the entire site takes
   10 minutes, which is inline with expectations.
 * I used the Bulk Delete plugin, which is able to delete custom posts up to 1000
   at a time.
 * Now an XML export of the entire site is 5 MB, vs 60+ MB with all the NF_SUB posts.
 * What I have not been able to discover is what changed that caused the mess. Not
   sure if it was NF 3.x, WP update, or something other.

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

The topic ‘WP Super Cache & Ninja Forms’ 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/)

 * 7 replies
 * 2 participants
 * Last reply from: [mjgraves](https://wordpress.org/support/users/mjgraves/)
 * Last activity: [8 years, 8 months ago](https://wordpress.org/support/topic/wp-super-cache-ninja-forms/#post-9578806)
 * Status: resolved