Skip to content

Varnish purge does not work with bin/magento CLI tool. #2025

@andrewkett

Description

@andrewkett

We have got varnish set up and running and using the admin UI are able to clear varnish by doing a full cache flush or by refreshing the full page cache. When doing this I can see the PURGE request coming through the varnish server, everything works as expected. However when using the CLI to purge, e.g magento cache:flush —all or magento cache:flush full_page, I cannot see a PURGE request happening.

The code that makes this request is in an observer in Magento_CacheInvalidate. Perhaps the the CLI is firing a different event which the observer isn't listening for?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentbug report

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions