[wp-trac] [WordPress Trac] #21672: Custom menu memory problem
WordPress Trac
wp-trac at lists.automattic.com
Mon Oct 15 01:17:16 UTC 2012
#21672: Custom menu memory problem
--------------------------+------------------------------
Reporter: pavelevap | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Menus | Version: 3.4.1
Severity: normal | Resolution:
Keywords: |
--------------------------+------------------------------
Comment (by nacin):
Replying to [comment:4 markoheijnen]:
> I did notice today that the action "clean_post_cache" is getting fired
on non existing posts too. This happens when I remove a menu item. Most
likely it's getting called more then ones but I didn't looked into it.
That's by design — once the post is deleted, it needs to be removed from
the cache. That's why clean_post_cache() takes a full object, rather than
an ID, as it can't reliably perform a lookup as the post may be gone.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/21672#comment:5>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list