lib/ash/magento.rb in capistrano-ash-1.2.1 vs lib/ash/magento.rb in capistrano-ash-1.2.2
- old
+ new
@@ -125,9 +125,21 @@
puts # for an extra line break before the host name
puts "#{channel[:host]}: #{data}"
break if stream == :err
end
end
+
+ desc "Clear the Magento Cache"
+ task :cc, :roles => [:web, :app], :except => { :no_release => true } do
+ magento.purge_cache
+ sudo "rm -rf #{shared_path}/var/full_page_cache/*"
+ end
+
+ desc "Enable display errors"
+ task :enable_dev, :roles => :web, :except => { :no_release => true } do
+ run "perl -pi -e 's/#ini_set/ini_set/g' #{latest_release}/index.php"
+ end
+
end
# --------------------------------------------
# Override the base.rb backup tasks
# --------------------------------------------