cviebrock / eloquent-taggable

Easily add the ability to tag your Eloquent models in Laravel.
MIT License
537 stars 72 forks source link

How about caching ? #54

Closed imanghafoori1 closed 6 years ago

imanghafoori1 commented 7 years ago

you can offer two kinds of caching:

  1. in memory
  2. persistent

https://github.com/dwightwatson/rememberable

cviebrock commented 7 years ago

Are you suggesting that I add some caching to the package itself? Or that people who use eloquent-taggable could also use rememberable?

If you mean the package itself, I'm a bit skeptical. Mostly because not all users will understand what is being cached and when, and dealing with stale or incorrect data is a PITA. Is there a specific set of queries you are finding slow?

As for using rememberable in your models along with taggable .. sure!