Plugin Planet

Premium WordPress Plugins

This quick tutorial explains how to exclude USP Pro Forms from the WP Super Cache plugin. Excluding the pages that are displaying your forms can help resolve certain issues like the “please do not load this page directly” error. In general, dynamic content like forms should not be cached because it can interfere with normal functionality.

“Please do not load this page directly. Thanks!”

Step 1

To exclude all USP Forms from getting cached, visit the following WP Super Cache setting:

Advanced > Accepted Filenames & Rejected URIs > “not to be cached”

In that setting, add the following lines:

post_id
usp_form
usp_post
usp_error
usp_success

Also add the slugs for any pages that will be displaying USP Forms. For example, if we have a contact form and a submit form, we would add the following to the same setting:

/submit/
/contact/

Step 2

Next, clear/reset the cache via the setting Contents > Delete Cache.

Step 3

Finally, make sure that you can see the changes by clearing your browser cache and cookies.

Done!

That’s all there is to it, no more steps are required :)