Skip to content

Instantly share code, notes, and snippets.

View havramar's full-sized avatar

Marcin Hawraniak havramar

  • Plum Research S.A.
View GitHub Profile
namespace :apc do
desc <<-DESC
Create a temporary PHP file to clear APC cache, call it (using curl) and removes it
This task must be triggered AFTER the deployment to clear APC cache
DESC
task :clear_cache do
front_url = fetch(:front_url)
apc_script_path = fetch(:apc_script_path)