Skip to content

check if a specific cache exists with a custom cache key and extra #410

Description

@fcoppey

I would like to implement two different ways of loading my data if it was already cached or not.
if it's not cached I will load it by Ajax at page load, and then once it cached I would like to load it directly from the view context. how can I test if such cache exist with this caching settings:

@cached_as(obj, extra=['sample_detail_plot', user])

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions