Giter VIP home page Giter VIP logo

Comments (2)

davidalger avatar davidalger commented on May 29, 2024

The command reveals the output of the curl call (response from varnish from called) whether it is an error message or a success message. 200 Purged is merely a synthetic reply from the VCL file, which does not actually indicate success, but rather is only a reply from varnish to avoid it passing on the request to the application.

I don't think this command should hard-fail a deploy by default. What happens if the :varnish_cache_hosts is set to an invalid IP? Wouldn't the curl exit code fail the build? I.e. I'm assuming the only soft-fail would be when its successfully connecting to varnish, but due to a mis-configuration of the VCL file the effect isn't one of purging anything from the cache.

from capistrano-magento2.

erikhansen avatar erikhansen commented on May 29, 2024

You make good points. Hard-failing a deploy is probably too drastic.

Unless you customize the Magento VCL to modify the synthetic reply to a different message, you can reasonably assume that a "200 Purged" response means the Varnish purge was successful. And as a result of that, I think it at least makes sense to output an error when a "200 Purged" response is not received. But I'll leave that up to you to decide and am closing this issue.

from capistrano-magento2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.