-
Notifications
You must be signed in to change notification settings - Fork 622
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CSRF tag cached #478
Comments
Could the solution be to not cache pages that contain forms? The frontend for locomotive should be fairly quick, you won't need caching unless you are receiving a huge amount of requests. |
Why didn't I think of that‽ :\ Just to be clear, are you officially stating that there is no intension for LocomotiveCMS to support high traffic sites or any site that requires complex logic to load a page? |
well, I thought about it this morning and Mario is right. It does not make sense to cache page with a form. |
That sounds great; I was concerned about the amount of new work that would be required to introduce partial caching but, if you think it's feasible, it would certainly solve the issue of pages that require intensive logic as well as a form. I would also be interested to know how some of the other CMSs handle the problem of methods that must not be cached. It certainly isn't an issue that is unique to LocomotiveCMS, and I've never had to worry about it before, so are probably some intelligent solutions out there to learn from. |
I really don't think partial caching is something very hard to implement. Let's keep this ticket open for now. |
When you enable page caching, any CSRF tags on the page are also cached.
It would be useful to be able to receive the tag via AJAX if the page is cached.
The text was updated successfully, but these errors were encountered: