My `application.html.slim` template looks like this conceptually:

```
/ some stuff
= header()
/ more stuff
= yield
/ more stuff
= footer()

```

Now `header()` and `footer()` are loaded from an external source and they are language-specific.

I have introduced a language-change mechanism (based on the URL) so the `header` and the `footer` will be loaded from a different source as soon as the language is changed.

My Problem:

* I start up the server
* I load `http://myserver.dev/en`
* The content as well as the header is shown in english --> **OK**
* I load `http://myserver.dev/de`
* Now the header is still in english while the content is in german --> **Not OK**
* Now the header and the footer won't change until i restart the server again.

So how can I clear the layout cache, so that the `footer` and `header` are re-loaded.

I tried the following (to no avail):

* Manually removing the cache files from disk (they still seem to be in memory)
* Adding the following setting in my `application.rb`

```
config.action_view.cache_template_loading = false
config.action_controller.perform_caching = false

```
* Invoking `Rails.cache.clear` in *every request*
* Attempting to expire the individual partial: `expire_fragment('external/_header.html.slim')` or `expire_fragment(%r{external})`