January 2009
17 posts
:rails => 'Clearing the Memcached Cache'
#drop in: /lib/tasks/cache.rake
namespace :cache do
desc 'Clear memcache cache' task :clear => :environment do ActionController::Base.cache_store.clear end end
#call:
rake cache:clear
Obviously, this is only useful if you’re using Memcached with your Rails site.
Via Strictly Untyped
:php => 'Force Errors Off'
This trick just saved me a few hours, so it’s perfect for sharing. If you need to force the display of PHP errors off on a specific site, add this to your .htaccess file:
php_flag display_errors off
The very existence of flamethrowers proves that some time, somewhere, someone...
– George Carlin
:rails_2_1 => 'Using AR validations with non-AR... →
If the user can’t find it, the function’s not there.
– Human Factors