Skip to content

Clearcaches

snoop.data.management.commands.clearcaches #

Clear caches using this management command

Classes#

Command #

Methods#
handle(self, **options) #

Clear cache

Source code in snoop/data/management/commands/clearcaches.py
def handle(self, **options):
    """Clear cache"""
    for k in settings.CACHES.keys():
        caches[k].clear()
        self.stderr.write("Cleared cache '{}'.\n".format(k))