Created
May 8, 2013 00:34
-
-
Save shaneshifflett/5537338 to your computer and use it in GitHub Desktop.
clearing the cache
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from django.core.management.base import BaseCommand, CommandError | |
| from django.core.cache import cache | |
| from django.test.client import Client | |
| from django.test.client import RequestFactory | |
| class Command(BaseCommand): | |
| def handle(self, *args, **options): | |
| cache.clear() | |
| opts = {}#url parameters | |
| c = Client() | |
| print 'getting pending claims' | |
| response = c.get('/get-pending-claims-everywhere/', opts, follow=True) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment