Files
Daniel O'Connor 3d63d12908 Improve read performance with caching and memoization (#4572)
* Improve read performance with caching and memoization

- Memoize `Crop#all_companions` and `Member#unread_count` in models
- Implement instance-level memoization in `CropsHelper#crop_or_parent`
- Add Rails caching for expensive aggregate queries in `Charts::CropsController`
- Add fragment caching for high-impact sections on the crop show page

Co-authored-by: CloCkWeRX <365751+CloCkWeRX@users.noreply.github.com>

* Fix header spec failure due to memoized unread_count

- Reset `@unread_count` in `spec/views/layouts/_header_spec.rb` to ensure the updated notification count is rendered correctly.

Co-authored-by: CloCkWeRX <365751+CloCkWeRX@users.noreply.github.com>

---------

Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
2026-05-03 14:47:59 +09:30
..
2026-04-26 14:22:32 +09:30
2022-11-06 17:36:30 +10:30
2026-04-26 14:22:32 +09:30
2026-04-26 13:09:00 +00:00
2022-11-06 17:36:11 +10:30
2026-04-26 13:09:00 +00:00
2025-09-20 09:43:22 +00:00
2025-09-20 09:43:22 +00:00
2026-04-26 13:09:00 +00:00
2025-08-24 21:10:16 +09:30
2025-09-20 10:18:24 +00:00
2025-09-20 09:43:22 +00:00
2026-04-26 09:26:52 +00:00
2025-09-20 09:43:22 +00:00
2022-11-06 17:36:49 +10:30