def purge_release(sender, instance, **kwargs): if instance.purged: return instance.purged = True purge_cdn( # Pages with _littleboxes.html reverse('home'), reverse('news'), # Download lists reverse('files'), reverse('feed-files'), reverse('downloads'), # Version dumps '/downloads/list.txt', '/home_page/version.txt', '/home_page/version.js', '/home_page/version.json', '/downloads/phpMyAdmin-latest-all-languages.tar.bz2', '/downloads/phpMyAdmin-latest-all-languages.tar.gz', '/downloads/phpMyAdmin-latest-all-languages.tar.xz', '/downloads/phpMyAdmin-latest-all-languages.zip', '/downloads/phpMyAdmin-latest-english.tar.bz2', '/downloads/phpMyAdmin-latest-english.tar.gz', '/downloads/phpMyAdmin-latest-english.tar.xz', '/downloads/phpMyAdmin-latest-english.zip', '/downloads/phpMyAdmin-latest-source.tar.xz', reverse('doap'), reverse('pad'), # This release instance.get_absolute_url(), ) # Purge all pages as every page contains download link purge_all_cdn()
def purge_release(sender, instance, **kwargs): purge_cdn( # Pages with _littleboxes.html reverse('home'), reverse('news'), # Download lists reverse('files'), reverse('feed-files'), reverse('downloads'), # Version dumps '/downloads/list.txt', '/home_page/version.txt', '/home_page/version.js', '/home_page/version.json', '/downloads/phpMyAdmin-latest-all-languages.tar.bz2', '/downloads/phpMyAdmin-latest-all-languages.tar.gz', '/downloads/phpMyAdmin-latest-all-languages.tar.xz', '/downloads/phpMyAdmin-latest-all-languages.zip', '/downloads/phpMyAdmin-latest-english.tar.bz2', '/downloads/phpMyAdmin-latest-english.tar.gz', '/downloads/phpMyAdmin-latest-english.tar.xz', '/downloads/phpMyAdmin-latest-english.zip', reverse('doap'), reverse('pad'), # This release instance.get_absolute_url(), ) # Purge all pages as every page contains download link purge_all_cdn()
def handle(self, *args, **options): purge_all_cdn()