WordPress/wp-includes
Scott Taylor 5d03d8eb50 Regenerate the term hierarchy cache ({taxonomy}_children) when it is out of sync with the passed taxonomy's last_changed value.
Introduces `taxonomy_hierarchy_is_fresh()`, which is only called in `_get_term_hierarchy()`. The taxonomy's `last_changed` value is checked against the value of `wp_cache_get( 'hierarchy_last_changed', $taxonomy )`.

Adds a unit test - `Tests_Term:test_hierachy_invalidation()`.

See [27101], which makes this type of cache invalidation possible.
Fixes #14485.


Built from https://develop.svn.wordpress.org/trunk@27102


git-svn-id: http://core.svn.wordpress.org/trunk@26971 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-06 01:58:14 +00:00
..
2013-07-13 00:37:36 +00:00
2013-12-01 12:48:10 +00:00
2014-01-04 18:09:12 +00:00
2014-01-17 08:38:09 +00:00
2013-10-30 14:39:10 +00:00
2013-09-06 17:19:09 +00:00
2014-01-27 00:28:13 +00:00
2013-10-30 14:39:10 +00:00