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
Jan 28th
Jan 21st
1 note
Jan 16th
Jan 16th
: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
Jan 14th
Jan 14th
“The very existence of flamethrowers proves that some time, somewhere, someone...”
– George Carlin
Jan 14th
:rails_2_1 => 'Using AR validations with non-AR... →
Jan 14th
Jan 13th
Jan 13th
Jan 13th
Jan 12th
“If the user can’t find it, the function’s not there.”
– Human Factors
Jan 12th
Jan 11th
Jan 9th
Jan 9th
Jan 6th