Suor / django-cacheops

A slick ORM cache with automatic granular event-driven invalidation.
BSD 3-Clause "New" or "Revised" License
2.09k stars 227 forks source link

DB migrations are being cached even after using setting migrations timeout to zero #465

Closed shivambalwani0704 closed 9 months ago

shivambalwani0704 commented 11 months ago

If we add a new column in a table and then try ti run server or makemigrations or to migrate it shows key not available in query list . After looking we found out about db migrations being cached but when we tried to set the migration timeout to zero still the same issue persists.

Suor commented 11 months ago

You need to be more specific in what you are doing and what you are getting. I.e. specific commands, code changes and error messages. For now it's totally puzzling for me what it is this about.

shivambalwani0704 commented 11 months ago

I am using Cacheops = 6.1 and Django = 3.1.5 , I haven’t initialised Cacheops with wildcard or neither have used any models with django prefix but despite it I suspect it's caching Django migrations table because whenever we add any field in the models that we are caching it throws an error (1054, "Unknown column 'portfolio_programme.course_sub_category' in 'field list'")
And then to make migration I need to disabled cache and then perform it

Suor commented 11 months ago

What makes you believe cacheops has anything to do with this? Especially if you didn't even cache anything.

shivambalwani0704 commented 11 months ago

As we disabled cacheops it worked fine.

Suor commented 11 months ago

Ok, you still need to be more specific. Like what actually you doing: commands, code changes, errors with stack traces. Including how do you disable cacheops.

Suor commented 11 months ago

Also did you try updating cacheops to the latest version?