Uh oh!
There was an error while loading. Please reload this page.
Store scss variables under a different prefix for each theming config version - #24449
Conversation
juliusknorr
commented
Nov 30, 2020
I'm actually wondering if there might be cases where this also causes issues with the SCSS cacher, mainly in cases where there is no distributed redis available and APCu is used instead. I'm not sure yet how exactly the APCu cache is shared across apache/php-fpm workers but I could imagine that this would be something to investigate further on if we run into issues there again. |
🤖 beep boop beep 🤖 Here are the logs for the failed build: Status of 36088: failurenodbShow full logmysql8.0-php7.4Show full log |
juliusknorr
commented
Nov 30, 2020
Will have a look at the tests. |
… version The main issue with using the general theming- prefix is that with APCu caching the cache is not shared between processes, so when trying to reset the cache through the CLI, e.g. when updating the theming config the old cache is never invalidated. Signed-off-by: Julius Härtl <jus@bitgrid.net>
4b184a4 to
22e26a7CompareMorrisJobke
commented
Nov 30, 2020
@juliushaertl But this is using |
juliusknorr
commented
Nov 30, 2020
It falls back to the local cache class if none is configured: server/lib/private/Memcache/Factory.php Lines 82 to 84 in cb05782 |
MorrisJobke
commented
Nov 30, 2020
That is not good ... because code actually depends on the fact, that if requesting a distributed one, then also the requirements of actually sharing this cache between everything needs to be met, otherwise such stuff can happen. 🙈 |
juliusknorr
commented
Nov 30, 2020
Hmm, i also wondered if about that. The main issue is that falling back to a NullCache would of course have quite some performance impact on instances that do not configure a distributed cache, which I would assume are quite some out there. |
juliusknorr
commented
Nov 30, 2020
/backport to stable19 |
juliusknorr
commented
Nov 30, 2020
/backport to stable20 |
MorrisJobke
commented
Nov 30, 2020
But trading a potential performance impact (that can be solved by properly configuring it) for a lot of hidden bugs that only appear under specific race conditions is not a good deal IMO. |
The main issue with using the general theming- prefix is that with APCu caching
the cache is not shared between processes, so when trying to reset the cache
through the CLI, e.g. when updating the theming config the old cache is never
invalidated.
To reproduce:
occ theming:config color '#ffffaa'occ maintenance:repairalso doesn't help