Skip to content
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

Disable Blade caching completly #63

Open
AmraniCh opened this issue Jun 15, 2022 · 2 comments
Open

Disable Blade caching completly #63

AmraniCh opened this issue Jun 15, 2022 · 2 comments

Comments

@AmraniCh
Copy link

AmraniCh commented Jun 15, 2022

Hey, thanks for this package.

I've integrated this package with Slim microframework and it works just fine, however, I used the blade directive function to generate in each request a new CSRF token to be embedded in HTML forms to verify each request, the problem is that with the cache blade enabled I got the same CSRF token in each request.

Does this mean the blade does not detect changes in values returned with the directive function ? or I've missed something?

@dapehe94
Copy link

Hello
I would also like to know how to disable the cache, I have the same problem with CSRF token.

Thank you very much

@AmraniCh
Copy link
Author

AmraniCh commented Jan 13, 2023

@dapehe94 One solution for the problem could be using persistence CRSF tokens which are linked with sessions (see).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants