def handle(self, *args, **options):
     tags = SearchTag.objects.all()
     for tag in tags:
         print tag
         rebuild_cache_for_tag(tag)
Exemplo n.º 2
0
def rebuild_tag_cache(sender, instance, **kwargs):
    from public_project.tag_cache_creator import rebuild_cache_for_tag
    rebuild_cache_for_tag(instance)
 def handle(self, *args, **options):
     tags = SearchTag.objects.all()
     for tag in tags:
         print tag
         rebuild_cache_for_tag(tag)