You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've also ran into this. I don't see any reason why the _make_cache_key_query_string couldn't just be appended to the normal _make_cache_key function instead of doing this hard "if" clause.
the _make_cache_key_query_string is still useful as performs the args hashing, so I am happy to use, but I also need to add a custom key_prefix. Having both options not working together in the same function without errors or warnings seems like a bug to me as well I am happy to submit a PR for that if that's agreed as the expected behaviour.
Hi, I see in the code for the
cached
method that ifquery_string
isTrue
then the method that is called ismake_cache_key_query_string
that's in https://github.com/sh4nks/flask-caching/blob/b8e2fa6d3251dc60548751855d1d329eecef132a/flask_caching/__init__.py#L464then params are hashed, request path is added and the cache key does not reflect the
key_prefix
parameter.Apart from other issues like post body not included, this makes the library a bit of an effort to integrate.
Would appreciate help, thanks!
The text was updated successfully, but these errors were encountered: