3

Is there a fast way to flush cache and empty static folders using putty commands? I am in developer mode and sometimes I dont know what I need to do so that the site updates my edits. Can one combine commands in putty and run at once?

asked Sep 2, 2017 at 15:23
1

1 Answer 1

2

Here is what you can do to run all commands in one go.

Combine all your commands in a single line joining them with && or ||

If you want to flush cache php bin/magento cache:flush and remove static folders rm -rf var/generation var/cache var/page_cache, You can join these two commands in a single line,

php bin/magento cache:flush && rm -rf var/generation var/cache var/page_cache

You can add as many of commands joining with && or ||

Reference1 Reference2

answered Sep 2, 2017 at 17:24
0

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.