[wp-trac] [WordPress Trac] #20486: Pass full post object to clean_post_cache()
WordPress Trac
wp-trac at lists.automattic.com
Wed Apr 18 22:12:31 UTC 2012
#20486: Pass full post object to clean_post_cache()
--------------------------+------------------
Reporter: duck_ | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.4
Component: Cache | Version:
Severity: normal | Resolution:
Keywords: |
--------------------------+------------------
Comment (by duck_):
get_post() in clean_post_cache() isn't much of a problem. We just need to
check the the result. If it's `empty()` then we can assume the post isn't
cached.
The recommendation/documentation would be to pass an object though.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/20486#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list