Caching and content security

By: Joe Semones | Asked: 03/28/2025
ForumsCategory: General questionsCaching and content security
Joe Semones asked 3 weeks ago

I have a view which uses a value in a user_meta key to filter which entries to display. The entries "Group 1" users sees could be quite different from those seen by "Group 2".  My question regards how does caching affect this security? If the cache happens to contain information provided to Group 1, will the cached page contain "Group 1 data" until the query the view executes for a Group 2 user replaces it with "group 2 data"? Or does the cached page and view only contain the layout, filter code, etc, but no data until the page is loaded by a user?

I know I can prevent the caching plugin from caching specific pages, but I'd like to avoid reducing performance unnecessarily.

Thanks in advance,
Joe

1 Answers
Victor Font Staff answered 3 weeks ago

Not usually, but it depends on what you mean by caching. Formidable uses WordPress caching, but there are caching add-ons and proxies as well. The word "caching" covers a lot of tech.

Making the Best WordPress Plugin even better - Together

Take on bigger projects with confidence knowing you have access to an entire community of Formidable Experts and Professionals who have your back when the going gets tough. You got this!
Join the community
crossarrow-right