-
-
Notifications
You must be signed in to change notification settings - Fork 194
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
support for adding POST params into a cache key #150
Comments
I'm having the same issue when trying to apply cache for POST request. @havok2063 Not sure if you find a way out? In the other scenario, I'm thinking to use a standalone redis cache for doing this, but not sure if I can use flask-caching? |
The other way out is to required unique key (UUID) as a part of request_path, that can be composed as an md5 hash on the post payload or params. So, if a client wants to get benefits from cache, they have to provide that key |
@bimhud Yes I did find a way to do it. I utilized the
|
See PR #159 |
Some routes in my application are POST routes called via AJAX or an API. The route itself has no arguments but I process the request form for input parameters. Is there a way to add these parameters to the cache_key? Toy example..
I'd like to be able to have this route cached based on the input form parameters, like
objectid
. Is there a way to do this? It's not clear in the documentation.The text was updated successfully, but these errors were encountered: