Content Restrictions and Caching
-
I am planning to use this plugin specifically for the ability to set content restrictions based on user role. This will be used for both entire pages and content sections created using Elementor.
The site will also be using a caching plugin as well as a CDN.
In order for these pages to not be cached I will have to have some type of a flag to
1) tell the caching plugin not to cache the page and
2) set headers so that the CDN does not cache the page.
I have no problem doing either of the above.
What I would like to know: Is there any way for me to detect when a page is saved if the page or any content on the page is restricted so that I can set a meta value for the page to flag the page prevent page caching so that this can be done dynamically rather than adding a setting to each page to allow turning caching on/off manually for each page?
- You must be logged in to reply to this topic.