In the Magento 2.2 backend, the Flush Static Files Cache button is not appearing under the Advanced Cache Management enter image description here

Any help is appreciated.


1 Answer 1


The clear static files cache button is only available in developer mode. This can be set using the Magento CLI, with the command magento deploy:mode:set developer.

Read more about setting modes here: http://devdocs.magento.com/guides/v2.2/config-guide/cli/config-cli-subcommands-mode.html

With 2.2.0 there are some differences between developer and production mode. This is one of them.

Why is it like this? As pointed out in below github-link, static files are not generated in production mode, hence it doesn't make sense to flush static files cache.

For reference, see this issue on the documentation and the answer:

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.