Closed fredmarmillod closed 5 years ago
Seems like this problem still exists @fredmarmillod . Or at least i'm having the same problem on full static cache
Are there any suggestions or updates about it or did you find anything else? @jasonvarga @jackmcdade
I think we have a different case, sorry.
We have 2 locales.
Tr is our primary locale and En is our second...
We have pages with different slugs on different locales.
Let our pages be: hakkimizda/biz-kimiz and about/who-we-are
When we try to update about/who-we-are from cp, $page->url still resolves to hakkimizda/biz-kimiz on invalidatePageUrls @ StaticCachingInvalidator resulting only (turkish) page to be removed from static cache. (but we're editing the page in english)
Describe the bug When full measure caching is configured (according to the documentation). It seems like invalidation rules won't be applied correctly. As I understood, when updating content from the cp, the FileCacher is always getting the default language when building the invalidation path.
A fix that works for me I was able to fix the problem by editing
Statamic\StaticCaching\FileCacher::getCachePath
:To Reproduce Steps to reproduce the behavior:
Configure caching as below:
The root folder should have this structure
Create a collection named "news" with an entry
Load the homepage in multiple locales to create static files for each
Edit the entry you created in each language
Expected behavior Static files in each locale path should be deleted