|
|
|
|
|
by elbee
4821 days ago
|
|
One risk of not using expiration at all is that if the database is updated but the after_commit hook doesn't finish (crash, out of resources etc.) then the cached data remains outdated until the record is updated again (which could be never). Setting a generous TTL won't increase your load much, but will let problems like that eventually fix themselves. |
|
Thanks for the intelligent suggestion!