I have tried this several times and figured out it works perfectly for themes that have not yet been deployed. But when I tried to update an existing theme (having the same name for obvious reasons) it does not override the existing one until I restart Keycloak. Clearing the realm cache also didn’t work.
I think there are some, but don’t have time to look for it right now. Feel free to create a new one, then we’ll figure out if it’s a duplicate when we triage it.
How would this work in a production environment where
you do not want to disable the cache template
but you are planning to update your theme
I understand that during development it’s easy to disable the cache, but I assume that in a production environment there should be a way to invalidate the theme cache for a certain realm without restarting the entire keycloak service ?
For now, I remove my Docker-container and create a new one after a hot deployment of the updated theme (my standalone volume is mounted). However, this kills the added value of the hot deployment feature.