Store scss variables under a different prefix for each theming config version#24449
Store scss variables under a different prefix for each theming config version#24449MorrisJobke merged 1 commit intomasterfrom
Conversation
|
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 |
|
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
22e26a7
Compare
|
@juliushaertl But this is using |
It falls back to the local cache class if none is configured: server/lib/private/Memcache/Factory.php Lines 82 to 84 in cb05782 |
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. 🙈 |
|
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. |
|
/backport to stable19 |
|
/backport to stable20 |
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