Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[v3] Clear cache #16

Open
chadrien opened this issue Feb 24, 2015 · 2 comments
Open

[v3] Clear cache #16

chadrien opened this issue Feb 24, 2015 · 2 comments
Milestone

Comments

@chadrien
Copy link

Capcake should hook somewhere (before deploy:publishing?) to clear cache

namespace :deploy do
  before publishing, :clear_cache do
    on roles(:app) do
      within release_path do
        execute :rm, '-rf', 'tmp/cache/**/*'
      end
    end
  end
end
@chadrien chadrien changed the title Clear cache [v3] Clear cache Feb 24, 2015
@jadb
Copy link
Owner

jadb commented Feb 24, 2015

@chadrien good idea! Can you submit a PR?

@jadb jadb added this to the 3.0 milestone Feb 24, 2015
@chronon
Copy link

chronon commented Aug 28, 2016

It might not be necessary to have a task for this. As of CakePHP v3.3.0 clearing the cache can be accomplished out of the box with capcake by running:

bundle exec cap production cakephp:cake[cache,clear_all]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants