Skip to content

Commit 1ffac2e

Browse files
committed
update readme
1 parent 9f0e4df commit 1ffac2e

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,9 @@ end
127127

128128
You can include `SupportTableCache::Associations` in your `ApplicationRecord` class to make association caching available on all models.
129129

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+
130133
### Testing
131134

132135
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

Comments
 (0)