I’m building a rails app allows the admin to load (and reload) an .erb template that will function as a layout. i.e. the application.html.erb
On occasion when updating an already created template to my hosted app the changes do not take effect. If I load a differently named file to the same template this does show the changes.
This is not an issue in DEV on my local environment but is an issue for PROD. Is there a setting that controls the caching of the layout for a page? The dynamic content is no problem but the static layout does not change unless I restart the app. Please let me know if you have any brilliant insights about this issue, or if it needs greater explanation.
Just figured it out – add this to your production.rb environment file;