mirror of
git://develop.git.wordpress.org/
synced 2025-02-12 02:44:22 +01:00
When comment IDs are fetched from the cache rather than the database, the subsequent `SELECT FOUND_ROWS()` query will not return the correct value. To avoid unnecessary queries, we cache the results of the `found_comments` query alongside the comment IDs. Props spacedmonkey. Fixes #37184. git-svn-id: https://develop.svn.wordpress.org/trunk@38001 602fd350-edb4-49c9-b593-d223f7449a82