Search code examples
ruby-on-railsrubycachingthin

Action_caching not working when using thin


I have an application running on my development machine using Aptana & Webrick.

If I turn on caching (action_caching, written to tmp/cache), it works fine, but when I deploy the application to the testserver (running thin instead of webrick) the caching does not work...i.e. there are no files written to tmp/cache.

as far as I can tell, the webserver is the only difference here (even running the development-environment on the test server.

any clues?


Solution

  • Okay, so I found the problem: I was running thin as a windows service, which didn't shut down or restart properly when trying to do so in "Services". Unfortunately without notice. Therefore no changes took effect..

    So after restarting the server, the caching-problem dissappeared. running thin now from the command line...