-
Notifications
You must be signed in to change notification settings - Fork 227
flush all cache through artisan, and typo #60
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
Furthermore I just tested flushing a model and noticed you have to provide double slashes on the command line:
fails but
works |
yes, the double-slashes is expected. :) If you can submit a PR to get this expedited, that would help. I'll definitely keep it on the radar for future consideration, though. Thanks! :) |
I added this now in version 0.2.33. To achieve this, I recommend setting up a dedicated cache connection for laravel-model-cache, then use the |
Thanks for implementing this @mikebronner but I have a few concerns about it First of all shouldn't config('laravel-model-caching:store') be config('laravel-model-caching.store') ? Does config work with either : or . ? I never tried it with : Also.. I see that you don't provide any default value in your configuration file, instead you just use env('MODEL_CACHE_STORE') which isn't an existing env variable. What is supposed to be this value? A connection name? So what will happen if someone tries to run this and they haven't configured this variable? What would happen then? Also.. you recommend setting a dedicated cache connection.. is that a requirement or a recommendation? What will happen if one doesn't do that.. will it flush more than just the part of the cache occupied by this package? |
Hmm, let me look at the cache store configuration name issue. That might have been slipping by me this whole time. Thanks for noticing. |
Hi @vesper8 , could you try again using release 0.2.34? I have gone through and done some refactoring and quite a bit of cleanup. Please let me know how that works for you. :) I will be updating the readme tomorrow with more details on the updates to flush the cache, as well as some other changes in this release. Thanks for being patient. :) |
@vesper8 closing this for now, please let me know if you continue to have this problem. |
should be
And I noticed that you HAVE to specify a model.. it would be very preferable to being able to flush all of the modelCache.. without having to flush the entire redis cache
could this be added please?
The text was updated successfully, but these errors were encountered: