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
Copy file name to clipboardExpand all lines: README.md
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -127,6 +127,9 @@ end
127
127
128
128
You can include `SupportTableCache::Associations` in your `ApplicationRecord` class to make association caching available on all models.
129
129
130
+
> [!NOTE]
131
+
> You still need to set up the target model to cache by the primary key used by the belongs to association. Otherwise the association will not be cached.
132
+
130
133
### Testing
131
134
132
135
Caching may interfere with tests by allowing data created in one test to leak into subsequent tests. You can resolve this by wrapping your tests with the `SupportTableCache.testing!` method.
0 commit comments