Do not attempt to clear post cache for post ID 0... that will recursively destroy your server
git-svn-id: http://svn.automattic.com/wordpress/trunk@15503 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
d67b806cf4
commit
e55cf70e35
|
@ -4019,6 +4019,9 @@ function clean_post_cache($id) {
|
||||||
|
|
||||||
$id = (int) $id;
|
$id = (int) $id;
|
||||||
|
|
||||||
|
if ( 0 === $id )
|
||||||
|
return;
|
||||||
|
|
||||||
wp_cache_delete($id, 'posts');
|
wp_cache_delete($id, 'posts');
|
||||||
wp_cache_delete($id, 'post_meta');
|
wp_cache_delete($id, 'post_meta');
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue