Skip to content

adding a model instance via django admin doesn't invalidate cache #3

@iiilx

Description

@iiilx

Hey there, first off I just wanna say thanks for working on this. Everything seemed fine until I noticed one of my models "Category" wasn't getting updated when I was calling Category.objects.cache().all(). The model is set properly i.e. "objects = CacheBotManager()". Whenever I add a new category in the admin panel, I think the cache isn't getting invalidated. Both on my site and shell when Category.objects().all() is being called, the result set is missing the newly added categories. Category.objects.all() includes the correct categories as expected. Is cachebot supposed to invalidate result sets from queries such as Category.objects.all() whenever a new category is added, or is it mainly for invalidating cached model instances and not queries? I'm sorry if my wording is incorrect/confusing and thanks for your help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions