[wp-trac] [WordPress Trac] #14134: Menus item are limited to 16 item and will not save more than that

WordPress Trac wp-trac at lists.automattic.com
Wed Sep 12 04:23:16 UTC 2012


#14134: Menus item are limited to 16 item and will not save more than that
--------------------------+-----------------------------
 Reporter:  jaanfx        |       Owner:  filosofo
     Type:  defect (bug)  |      Status:  reviewing
 Priority:  high          |   Milestone:  Future Release
Component:  Menus         |     Version:  3.0
 Severity:  major         |  Resolution:
 Keywords:  needs-patch   |
--------------------------+-----------------------------

Comment (by wonderboymusic):

 The 1000 variable limit applies only to '''each nesting level''' of a
 multi-dimensional input array - so a more clever collection of fields
 would probably solve that.

 Something like:

 {{{
 <input name="menu[0]items[6][url]"/>
 }}}

 I have a recent scenario where I ran into max_input_vars - the problem
 turned out to be uncached database calls being made in a hierarchy loop on
 clean_post_cache in combination with a Google Sitemap generator running
 too often. Not saying that's the case here, just saying that monitoring
 SQL queries can often point to a piece of the software running out of
 control.

 I thought the form was the main culprit because I had 3 post types acting
 like a hierarchy Post > Section > Items and had tons of sections and
 items. When I turned off cache invalidation (not a solution), almost every
 problem went away. clean_post_cache and clean_object_term_cache can end up
 making an absurd number of database calls.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/14134#comment:71>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list