Skip to content

Surgical cache purge - #635

Open
artoonie wants to merge 3 commits into
mainfrom
surgical-cache-purge
Open

Surgical cache purge#635
artoonie wants to merge 3 commits into
mainfrom
surgical-cache-purge

Conversation

@artoonie

Copy link
Copy Markdown
Owner

Copy of #609 with runnable CI

skaphan added 3 commits April 10, 2026 09:55
Uses thread-local middleware to capture the current request host,
then builds synthetic requests matching each cached URL to delete
only the affected cache entries instead of clearing everything.

Co-Authored-By: Claude Opus 4.6
Replace temporary ALLOWED_HOSTS mutation with DisallowedHost
catch-and-skip to avoid modifying security settings at runtime.
Replace two separate purge tests with one comprehensive test that
verifies purge_vis_cache clears all cached URL variants for a slug,
including query-string variants.

Co-Authored-By: Claude Opus 4.6
with open(filenames.ONE_ROUND, 'r', encoding='utf-8') as f:
self.client.post('/upload.html', {'jsonFile': f})
config = TestHelpers.get_latest_upload()
path = reverse('visualize', args=(config.slug,))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants