Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Rails using cached application.css despite changes

Tags:

I have a Rails 3.1 application that uses SASS. The application.css.scss file looks like:

@import 'reset.css'; @import '960.css'; @import 'pages/master.css.scss'; 

I have a watchr script that touches application.css.scss whenever one of the @imported files is changed.

For a while this setup worked fine. Ever since last week (and I'm not sure why), Rails has been pulling a cached version of application.css for the webpages despite all my attempts at restarting the app, re-touching application.css.scss, etc. I've also deleted .sass-cache to no effect.

Any ideas?

like image 207
Rui Jiang Avatar asked Aug 12 '11 15:08

Rui Jiang


1 Answers

I had the same issue. I stopped the server, executed rm -fr tmp/cache, and my css files were finally rebuild.

like image 61
Greg Dan Avatar answered Sep 30 '22 23:09

Greg Dan