Skip to content

Artisan Command To Clear Specific Model Cache #45

Closed
@Nowi5

Description

@Nowi5

Changed Question

Is there a possibility to delete only the model cache or even more specific to delete 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.

Original Questions

  1. Would that reduce the amount of select queries to the db?
    Example issue just because of translations:
    laravel_queries

  2. Shouldn't that be part of Laravel standard?

  3. How can I integrate these in Vendor Models e.g. Multiple database calls for the same key barryvdh/laravel-translation-manager#227 ?

  4. How can I delete the cache e.g. when a change was made direct on the database?

Environment

Laravel Version: 5.5
PHP Version: 7

Thank you and a happy new year.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions