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

[BUGFIX] Invalidate sitemaps cache when site config changes #435

Merged
merged 1 commit into from
Sep 11, 2023

Conversation

eliashaeussler
Copy link
Owner

This PR adds an event listener to remove a sitemaps cache entry if the associated site's configuration is changed. This effectively triggers a new site resolving which takes the modified site properties into account.

@eliashaeussler eliashaeussler added the bug Something isn't working label Sep 11, 2023
@eliashaeussler eliashaeussler self-assigned this Sep 11, 2023
@codecov
Copy link

codecov bot commented Sep 11, 2023

Codecov Report

Patch coverage: 100.00% and project coverage change: +0.08% 🎉

Comparison is base (d5ae2d1) 92.46% compared to head (74414ec) 92.54%.

Additional details and impacted files
@@             Coverage Diff              @@
##               main     #435      +/-   ##
============================================
+ Coverage     92.46%   92.54%   +0.08%     
- Complexity      404      409       +5     
============================================
  Files            50       51       +1     
  Lines          1327     1342      +15     
============================================
+ Hits           1227     1242      +15     
  Misses          100      100              
Files Changed Coverage Δ
Classes/Cache/SitemapsCache.php 100.00% <100.00%> (ø)
...lasses/EventListener/SiteConfigurationListener.php 100.00% <100.00%> (ø)

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@codeclimate
Copy link

codeclimate bot commented Sep 11, 2023

Code Climate has analyzed commit 74414ec and detected 0 issues on this pull request.

The test coverage on the diff in this pull request is 100.0% (50% is the threshold).

This pull request will bring the total coverage in the repository to 92.5% (0.0% change).

View more on Code Climate.

@eliashaeussler eliashaeussler merged commit 25615d7 into main Sep 11, 2023
@eliashaeussler eliashaeussler deleted the fix/invalidate-caches branch September 11, 2023 19:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant