-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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 any theming prefixed cache on cache buster increase #8983
Conversation
Signed-off-by: Julius Härtl <jus@bitgrid.net>
I guess out acceptance tests didn't catch that, since they are not running with any cache backend. |
Codecov Report
@@ Coverage Diff @@
## master #8983 +/- ##
=============================================
- Coverage 53.58% 33.89% -19.69%
Complexity 23981 23981
=============================================
Files 1443 1443
Lines 80307 79277 -1030
=============================================
- Hits 43030 26874 -16156
- Misses 37277 52403 +15126
|
so i just need to replace the file ? sorry for that question .. |
Don't know |
@mairsebastian @ExaconAT You can just change the line in apps/theming/lib/ThemingDefaults.php as shown in the diff: https://github.com/nextcloud/server/pull/8983/files#diff-5ba7c2fd4066c431ab229e984115f9b6 |
hello @juliushaertl i dont have this file or this Directory "test" apps/theming/tests/ThemingDefaultsTest.php |
sry me again, after changing the first line, nextcloud is not working anymore. any ideas? |
@mairsebastian You should restore the file from originally installed zip archive. When you try to patch your Nextcloud instance, you can ignore the ThemingDefaultsTest.php file. All it requires is to change one line in apps/theming/lib/ThemingDefaults.php to get rid of the |
Regression from #8716, where the baseUrl was added to the theming cache prefix. When clearing on cache buster increase, the cache was not cleared properly, because it was missing the baseUrl.
This PR will make sure we clear cached values for any baseUrl prefix.
Fixes #8888
Also requires to be backported to 13.