• Dear,

    I’ve received information from my hosting provider about slow callback running on my site, and therefore increasing my server response time & TTFB.

    Can you please investigate on this line related to your plugin? As per the instruction of my hosting : values over 0.00xx are too high and need to be addressed.

    | WPO_WCPDF->load_classes() | 0.0152s | woocommerce-pdf-invoices-packing-slips/woocommerce-pdf-invoices-packingslips.php:190

    https://gevcen.tinytake.com/tt/Mzk3MTY1N18xMjIwNDIxMg

    Thanks

    • This topic was modified 5 years, 2 months ago by gevcen.
    • This topic was modified 5 years, 2 months ago by gevcen.
Viewing 1 replies (of 1 total)
  • Plugin Contributor Ewout

    (@pomegranate)

    Hi! Thanks for reporting.
    This callback is used for loading the plugin classes. Technically it might be possible to increase performance somewhat by using an autoloader, but you should realize that this is mostly a cosmetic change – rather than one callback this would just distribute the load over different callbacks. The more ‘heavy’ classes that are used for PDF generation are already autoloaded and thus never loaded on calls that don’t need this functionality. I don’t see any quick wins for improving speed on the main classes and personally I think 1/100th of a second shouldn’t be much of a concern. Enabling server side caching will probably have much bigger gains.

    All the best with your site and happy new year!

Viewing 1 replies (of 1 total)
  • The topic ‘Slow callback increasing server response time’ is closed to new replies.