• Resolved Vahan

    (@vahan889)


    hi team!

    I found an issue here: \QuadLayers\PWB\Shortcodes\All_Brands::count_visible_products.
    The issue is that you trying to get count of posts only, but you getting what fields of the posts and it cause memory issue.

    I solved the issue adding
    'fields' => 'ids',
    in the $args.

    Please update the part.

    Thanks in advance,
    Vahan

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Please optimize brand’s products count query’ is closed to new replies.