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
After upgrading Django version to 4.2 few months back, I now notice warning messages:
RuntimeWarning: Pickled model instance's Django version 3.2.14 does not match the current version 4.2.16.
These come from pickled switch objects in Redis cache. After having deleted all waffle keys from Redis, warnings are now silenced. By reading docs and going through the source code, I couldn't find any management command for clearing cache. I think the ideal solution would be to add new setting for cache expiration time.
In my particular case, I use only switches and hitting database from time to time for refreshing entries is totally fine.
The text was updated successfully, but these errors were encountered:
After upgrading Django version to 4.2 few months back, I now notice warning messages:
These come from pickled switch objects in Redis cache. After having deleted all waffle keys from Redis, warnings are now silenced. By reading docs and going through the source code, I couldn't find any management command for clearing cache. I think the ideal solution would be to add new setting for cache expiration time.
In my particular case, I use only switches and hitting database from time to time for refreshing entries is totally fine.
The text was updated successfully, but these errors were encountered: