WordPress.org

Make WordPress Core

Changes between Version 1 and Version 2 of Ticket #35454, comment 2


Ignore:
Timestamp:
01/15/2016 08:43:58 AM (6 years ago)
Author:
sfai05
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #35454, comment 2

    v1 v2  
    55I run three `WP_Query` on different dashboard widget. Some of the widget will do `get_term_meta`
    66
    7 The problem is the function `lazyload_term_meta` is added to hook `get_term_metadata` duplicated if you called `WP_Query` for more then one time. So when you run `get_term_meta` afterward the action `lazyload_term_meta` will trigger multiple time. And in the function `lazyload_term_meta` you will do multiple Memcache get depends on how many taxonomy you have created.
     7The problem is the function `lazyload_term_meta` is added to hook `get_term_metadata` duplicated if you called `WP_Query` for more then one time. So when you run `get_term_meta` afterward, the action `lazyload_term_meta` will be triggered multiple times. And in the function `lazyload_term_meta` you will do multiple Memcache get depends on how many taxonomy you have created.
    88
    99I only do ~40 `get_term_meta` it already crashed my memcache server.