# Disabling cacheThemes and cacheTemplates doesn't work

**URL:** <https://forum.keycloak.org/t/disabling-cachethemes-and-cachetemplates-doesnt-work/1333>\
**Category:** Configuring the server\
**Created:** [February 20, 2020, 10:02pm UTC](https://forum.keycloak.org/t/disabling-cachethemes-and-cachetemplates-doesnt-work/1333 "2020-02-20T22:02:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![zonaut](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/zonaut/32/666_2.png) [@zonaut](https://forum.keycloak.org/u/zonaut)\
**Post date:** [February 20, 2020, 10:02pm UTC](https://forum.keycloak.org/t/disabling-cachethemes-and-cachetemplates-doesnt-work/1333/1 "2020-02-20T22:02:18Z")

</div>

I’m creating a new custom theme for Keycloak 9.0.0 and have set the following variables in my standalone.xml file.

```
<staticMaxAge>-1</staticMaxAge>
<cacheThemes>false</cacheThemes>
<cacheTemplates>false</cacheTemplates>

```

These settings seem to work for most things like styling, images, scripts and some template files.  
I seems it’s not working for theme.properties files and some template files.  
Editing the template.ftl in a type does seem to work but not other files like login.ftl and other children.  
A restart of Keycloak seems to be needed to pick up these changes.

Is there something that I am missing, like an extra setting?  
If not, is there a workaround without restarting Keycloak every time?

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![zonaut](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/zonaut/32/666_2.png) [@zonaut](https://forum.keycloak.org/u/zonaut)\
**Post date:** [February 22, 2020, 10:08pm UTC](https://forum.keycloak.org/t/disabling-cachethemes-and-cachetemplates-doesnt-work/1333/2 "2020-02-22T22:08:12Z")

</div>

So, my bad. After bashing into my container and checking the values that where being set I stumbled onto the following.

The Keycloak Docker image uses the standalone-ha.xml as default when starting, so the changes had to be made there.

Everything works now as expected and every file change is immediately picked up.

---

<div class="post-metadata">

**Author:** ![alex88](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/alex88/32/325_2.png) [@alex88](https://forum.keycloak.org/u/alex88)\
**Post date:** [May 22, 2020, 2:12am UTC](https://forum.keycloak.org/t/disabling-cachethemes-and-cachetemplates-doesnt-work/1333/3 "2020-05-22T02:12:45Z")

</div>

Thank you @zonaut I had the same issue!
