• Resolved vnzhlv

    (@vnzhlv)


    Hi, I’m trying to get a lot of products from my WC shop using $products = wc_get_products()
    So, if there are a lot of products, >1000 at least, then memory just grows by leaps and bounds… And when I’m doing unset($products) the memory is not released.
    Example:

    <?php 
    ////magic....
    memory_get_usage(); //3mb
    wc_get_products(); //I even don't keep it anywhere
    memory_get_usage() //20mb
    ////another magic....
    ?>
    

    What to do with that? thanks.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘How to be with overloading of memory?’ is closed to new replies.