Eloquent updated event exclude certain columns from triggering event to bust cache #49636
Unanswered
sts-ryan-holton
asked this question in
Ideas
Replies: 1 comment
-
Use |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I'm using the eloquent events to flush out cache tags within my Laravel project to improve the user experience whenever a user modifies a model. However, some columns on my model that I've added such as date & time fields aren't updated by the user, yet the
updated
event will still run thus invalidating my cache all of the time.I'd like to be able to exclude certain columns from the updated event so that they don't trigger the function, here's my current set up:
Beta Was this translation helpful? Give feedback.
All reactions