Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clear cache when a Template Category is updated #1912

Merged
merged 3 commits into from
Jul 30, 2024

Conversation

whabanks
Copy link
Contributor

@whabanks whabanks commented Jul 29, 2024

Summary | Résumé

This PR adds functionality to clear service-<id>-templates and template-<id>-* cache keys when a template category is updated

Test instructions | Instructions pour tester la modification

  1. Navigate to templates list page
  2. Select a template and change the category
  3. Note the presence of service-<id>-templates-* and template-<id>-* cache keys in Redis
  4. Go to the platform admin page and update the same template category uses in step 2
  5. Check Redis and note that the service-<id>-templates-* and template-<id>-* cache keys were deleted
  6. Refresh or return to the templates list page note that the updated name of the category is present

whabanks and others added 2 commits July 29, 2024 14:58
- Clear template_categories, service-<id>-templates and template-<id> cache keys when a template category is updated
Copy link

@whabanks whabanks merged commit 922fc13 into main Jul 30, 2024
10 checks passed
@whabanks whabanks deleted the fix/tc-delete-clear-cache branch July 30, 2024 13:17
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.

2 participants