Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1487283
    Jason Bolger
    Guest

    Hi team,

    On profiling my site with Enfold I found that a routine in class-popup-templates-base.php was responsible for a very large portion of CPU usage. In particular it calls the count() function over 150,000 times per page load.

    I asked Claude AI to refactor the function which has reduced the CPU usage by 10x and reduced the page load for all admin pages for approx 0.2s. As we are an ecommerce site and spend all day on the backend this is a huge improvement.

    I am happy to share this improvement with you guys.

    I have one other question. Why is it that avia layout builder is initialising on all admin pages, including ones like the WooCommerce Order Admin List and Order Admin Edit pages where there is no ALB content? Excluding this would help us with server load.

    Thanks,
    Jason

    #1487420

    Hey Jason Bolger,

    Thanks for sharing the problem with count(). I added a fix to next release.

    It is not easy to load backend without the builder.
    I started a try to use Enfold without the builder but stopped it as frontend would need a lot of changes e.g. in css.
    I did not check it for backend pages yet.

    See ..\config-templatebuilder\avia-template-builder\php\class-template-builder.php around line 472ff if you want to give it a try.

    Best regards,
    Günter

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.