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.
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:
Next, clear/reset the cache via the setting Contents ▸ Delete Cache.
Finally, make sure that you can see the changes by clearing your browser cache and cookies.
That’s all there is to it, no more steps are required :)