Flag unnecessarily calls _comment_load() when doing access checks. This causes one additional query for each comment in a page, because _comment_load() doesn't do any caching.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | 690248-comment-cache.patch | 895 bytes | damien tournoud |
Comments
Comment #1
damien tournoud commentedTime to use
->remember_content().Comment #2
quicksketchThanks Damien! Not sure why we weren't doing that already. I'll commit this next time I'm working on Flag.
Comment #3
quicksketchFinally committed this. Thanks again.