php - Wordpress theme memory leak -
i'm developing custom wordpress theme 1 of clients , encounter several memory exhausted
errors.
at moment have set available memory @ 64mb , can set higher don't want this; optimize work. client insists use 2 plugins (visual composer & ultimate addons visual composer) takes more memory.
my question is: how can see queries, objects, variables use memory , how can free those.
i tried bunch of plugins (debug bar, memory viewer, p3, query monitor) tell me how memory use , nothing specific.
can point me articles subject (i searched 2 days nothing clear returned subject).
most of memory errors appear after make ajax calls. there can prevent memory overload in php function?
any advice appreciated.
thanks
here code memory leak happens - problem somewhere around wp_head execution. investigations reveal jump in memory use @ time. question general guidelines , things in case need debug these kind of issues. // $args printed
array ( [post_type] => estate_property [post_status] => publish [paged] => 1 [posts_per_page] => 30 [meta_key] => prop_featured [orderby] => meta_value [order] => desc [meta_query] => array ( [0] => array ( [key] => property_price [value] => 0 [type] => numeric [compare] => >= ) [1] => array ( [key] => property_price [value] => 50000000 [type] => numeric [compare] => <= ) ) [cache_results] => [tax_query] => array ( [relation] => , [0] => [1] => [2] => [3] => [4] => ) ) $prop_selection = new wp_query($args);
.....
Comments
Post a Comment