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 use some manage.py command to parse and upload some data to my database. johnny-cache cached my data once and after updates my data cache doesn't update. In database I have actual data, but my site show old data from cache.
I have to restart my memcached server to solve that problem after each data update. Anyone has similar problem?
The text was updated successfully, but these errors were encountered:
Your problem is that JC is activated in middleware, and management commands don't pass through middleware. This is pretty well documented and can be fixed either by activating JC in your script, or by manually clearing the models you affect.
We've looked into solutions for this, and Django doesn't make it particularly easy due to the order of instantiation of the database/settings/etc. For now we'll leave it as activating JC in the script itself.
After some discussion in an email thread, I think it would work to have the __init__.py in your project directory (the place your DJANGO_SETTINGS_MODULE is) run code like this:
fromjohnny.cacheimportenableenable()
This will make its way to the docs when 1.5 is released in the coming weeks.
I use some manage.py command to parse and upload some data to my database. johnny-cache cached my data once and after updates my data cache doesn't update. In database I have actual data, but my site show old data from cache.
I have to restart my memcached server to solve that problem after each data update. Anyone has similar problem?
The text was updated successfully, but these errors were encountered: