i have a rails
3 app in dev mode that won't load any changes i make when its running webrick. i triple checked the settings for my development.rb
and made sure i am running in development mode.
config.cache_classes = false
config.action_controller.perform_caching = false
i also checked my tmp
directory to make sure the cache folder is empty - i have yet to do any caching on the site and have never turned on caching. im guessing its a loading problem with the files.
also i was running on webrick
then installed mongrel and the problem still persists.
im guessing ive run into a config problem, bc i dont see anyone else posting such a prob. anything else im missing?
EDIT: it looks like my view helpers aren't auto loadable - aren't helpers by default supposed to be reloadable in rails 3?
ActiveSupport::Cache::MemCacheStore uses Danga's memcached server to provide a centralized cache for your application. Rails uses the bundled dalli gem by default. This is currently the most popular cache store for production websites.
Rails 5.2 introduced built-in Redis cache store, which allows you to store cache entries in Redis.
This is an introduction to three types of caching techniques: page, action and fragment caching. Rails provides by default fragment caching. In order to use page and action caching, you will need to add actionpack-page_caching and actionpack-action_caching to your Gemfile.
cache. clear will clear your app cache. In that case rake tmp:cache:clear will just try to remove files from "#{Rails.
I've had a similar experience, but I don't believe it was with an actual helper class, it was with anything I wrote under the lib/
directory. If you've had to use a require 'some_class'
statement, then you should switch it to:
require_dependency 'some_class'
Worked like a charm for me.
I had the same problem and here is the simple solution.
In your config/environments/development.rb
set following settings:
config.action_controller.perform_caching = false
config.perform_caching = false
config.cache_store = :null_store
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With