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

Add invalidateCacheTags to post_import queueworker #4125

Merged
merged 7 commits into from
Feb 22, 2024

Conversation

janette
Copy link
Member

@janette janette commented Feb 15, 2024

Temporary fix for stale cache after post_import

QA Steps

  1. Set up vanilla site
  2. ddev drush en sample_content
  3. ddev drush dkan-sample-content:create
  4. ddev drush dkan:datastore:import 3a187a87dc6cd47c48b6b4c4785224b7
  5. Confirm datastore results: curl http://dkan.ddev.site/api/1/datastore/query/cedcd327-4e5d-43f9-8eb1-c11850fa7c55/0
  6. Confirm endpoint is cached: curl -I http://dkan.ddev.site/api/1/datastore/query/cedcd327-4e5d-43f9-8eb1-c11850fa7c55/0 , look for x-drupal-cache: HIT
  7. ddev drush queue:run post_import
  8. Confirm endpoint is now not cached: curl -I http://test1.ddev.site/api/1/datastore/query/cedcd327-4e5d-43f9-8eb1-c11850fa7c55/0 , x-drupal-cache should be MISS or simply not present

@dafeder dafeder merged commit 6850890 into 2.x Feb 22, 2024
10 checks passed
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.

None yet

2 participants