spree/spree — Issue #1045: In Development mode, Deface overrides appear to be cached
Author: steveroot
Created: 2012-01-29 14:15:44+00:00
State: open

I've found part of my confusion in using Spree 1.0.0rc2 is that my changes in development aren't always reflecting when I view the site. I've traced one specific example:

1. Create a Deface override - eg one of mine is: remove_sidebar_if_add_static_menu.rb
2. View site
* You'll see the effect of your deface rule on your site
* You'll see the deface rule appear in your dev log, eg: Deface: 'remove_sidebar_if_add_static_menu' matched starting with...
3. Remove deface overide by renaming
* (I removed the .rb; from remove_sidebar_if_add_static_menu.rb to remove_sidebar_if_add_static_menu )
4. View site
* You'll see the effect of your deface rule on your site
* You'll see the deface rule appear in your dev log, eg: Deface: 'remove_sidebar_if_add_static_menu' matched starting with...
5. Restart server (rails s)
6. View site
* You'll see the deface rule no longer had an affect on the site, and no longer appears in the log.