Git Product home page Git Product logo

Comments (6)

BrunnerLivio avatar BrunnerLivio commented on June 12, 2024

Thanks for you report! I personally don't think it's a good idea to add this to Terminus directly. I think @Header('Cache-Control', 'no-store') is the way to go as you've described. Though I think wouldn't hurt to update the documentation.

I'm open to change my mind though if other people face the same issue and had to do the same workaround?

from terminus.

n10000k avatar n10000k commented on June 12, 2024

Yeah it's one to understand where the responsibility of the cache is owned at this point.

My argument for adding it to Terminus (as a condition to turn on and off cache: false/true, by default no caching enabled) is that you wrap your route in the @HealthCheck() decorator. When doing a health check you want the actual results vs cached results.

Use case being that if you're doing checks in Kubernetes or other deployment methods/services that allow for health checking you want to know real time that the service is up and not some old out dated previous cached result that maybe during that time you ran out of memory, database crashed etc.

from terminus.

matt2415 avatar matt2415 commented on June 12, 2024

I had this issue too and had to use the work around.

from terminus.

BrunnerLivio avatar BrunnerLivio commented on June 12, 2024

After further considerations I have implemented this feature #2335

from terminus.

BrunnerLivio avatar BrunnerLivio commented on June 12, 2024

Released with v10.1.0 🎉

from terminus.

n10000k avatar n10000k commented on June 12, 2024

Thanks @BrunnerLivio !

from terminus.

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.