Giter Club home page Giter Club logo

Comments (4)

mikebronner avatar mikebronner commented on July 29, 2024
  1. I believe this would be a good use-case for that.
  2. I believe it was in Laravel 4, but was removed in Laravel due to complexities.
  3. That is hard to do. I don't have a viable solution for you at this time for models that you don't control yourself.
  4. You would have to flush the cache after making manual database changes: php artisan cache:clear.

Hope this helps answer some of your questions. :) Happy new year! Please feel free to re-open to continue the conversation if you have more questions.

from laravel-model-caching.

Nowi5 avatar Nowi5 commented on July 29, 2024

Thank you for the very quick answer. I have one additional question regarding 4.:

Is there a possibility to delete only the model cache or even more specific to delete the only one specific model cache? Would love to have a separate artisan command.
The reason is, that I don't like to clear all caches although I have just made on entry in one model out of 30.

Thanks.

from laravel-model-caching.

mikebronner avatar mikebronner commented on July 29, 2024

That's actually a great idea: have a command to clear all caches for a given model. The complexity is dealing with relationships. Let me see what I can do :). Thanks for bringing this up. (This might take some time to implement, but it's on my radar now.) :)

from laravel-model-caching.

mikebronner avatar mikebronner commented on July 29, 2024

@Nowi5 Can you give 0.2.14 release a shot and see if this does what you need? (I'll be releasing it momentarily, just updating readme and change-logs.

from laravel-model-caching.

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.