Skip to content
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

Django Admin not invalidating cache on save #469

Open
northkode opened this issue Nov 23, 2023 · 4 comments
Open

Django Admin not invalidating cache on save #469

northkode opened this issue Nov 23, 2023 · 4 comments

Comments

@northkode
Copy link

northkode commented Nov 23, 2023

we have a pretty basic config:

CACHEOPS = {
    'auth.user': {'ops': 'get', 'timeout': 60 * 15},
    'auth.*': {'ops': ('fetch', 'get')},
    'auth.permission': {'ops': 'all'},
    'license.*': {'ops': 'all'},
    'users.*': {'ops': 'all'},
    'assessments.*': {'ops': 'all'},
    'trainingplans.*': {'ops': 'all'},
    'questionnaires.*': {'ops': 'all'},
    'workouts.*': {'ops': 'all'},
    'shop.*': {'ops': 'all'},
    'system.*': {'ops': 'all'},
    '*.*': {},
}

and everytime we update something in the admin, the object is still cached via API calls.
Is there something I'm missing here?

@Suor
Copy link
Owner

Suor commented Nov 23, 2023

That's something new. The only idea I have is that cacheops is not setup in admin or is disabled there somehow. Otherwise your will need to debug it.

@northkode
Copy link
Author

i'm using out of the box setup based on the readme, yet it says that it should invalidate based on signals and the django admin does signals for saving and editing models.

Not sure what you mean, debug it.. we literally just did a pip install and added it to our configs

@Suor
Copy link
Owner

Suor commented Nov 25, 2023

By debug I mean, go other how it works: do signals fire? are cacheops handlers called? are redis queries executed? I.e. what is happening at every separate step.

@Suor
Copy link
Owner

Suor commented Jan 18, 2024

Ok, another thing that comes to mind maybe admin is issuing mass updates or somehow else hit the CAVEATS?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants