You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 25, 2022. It is now read-only.
I wonder if I can simply use \Websanova\EasyCache\EasyCache; in my BaseModel class and then all models inheriting from that class have "transparent" caching enabled? My objection here is to reduce queries that are repeated all over again by "transparently" caching data (models).
And my models don't have id column, they have <model_name>_id. Example: my model Foo (table: foo) has a protected $primaryKey = 'foo_id'; set. Do I have to set $cacheBy in each model or does your implementation respect $primaryKey ?
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi,
I wonder if I can simply
use \Websanova\EasyCache\EasyCache;
in myBaseModel
class and then all models inheriting from that class have "transparent" caching enabled? My objection here is to reduce queries that are repeated all over again by "transparently" caching data (models).And my models don't have
id
column, they have<model_name>_id
. Example: my modelFoo
(table:foo
) has aprotected $primaryKey = 'foo_id';
set. Do I have to set$cacheBy
in each model or does your implementation respect$primaryKey
?The text was updated successfully, but these errors were encountered: