Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Posts, Post Types: Use persistent caching in
get_adjacent_post
func…
…tion. The function `get_adjacent_post` cached the results of database query in the cache group `counts`. This is a none persistent group and meant cache would not persist on the next request. Change cache to save to the `posts` cache group. Cache invalidation is done by using get last changed value of the `posts` and `terms` group as a salt for the cache key. Props spacedmonkey, peterwilsoncc, johnbillion, boonebgorges, mukesh27, dd32. Fixes #41131. Built from https://develop.svn.wordpress.org/trunk@55085 git-svn-id: https://core.svn.wordpress.org/trunk@54618 1a063a9b-81f0-0310-95a4-ce76da25c4cd
- Loading branch information