Extension list

Skip to main content

List of all our extensions

Create an account

Category Module Helper Performance Issue

Category Module Helper Performance Issue was created by keep2000

Posted 5 months 13 hours ago #1046
Hi guys,

We’ve run into a performance issue with the VM category module override.

On a site with around 500 categories and 20.000 products, even on a very fast server, this part alone takes about 10–15 seconds to execute on the first load. After some debugging, it looks like most of the time is spent inside this helper file when building the category tree and product lists: plugins/system/vmuikitx_override/html_override/mod_virtuemart_category/helpers.php

When temporarily disabling this override, the page load time drops back to normal.

So it seems the category/product aggregation logic in the helper doesn’t scale very well with larger category trees.

Although Joomla’s cache helps to some extent, it gets cleared relatively often, and the performance hit is quite noticeable — customers have already reported slow page loads.

Is there a way to optimize how the product counts are calculated in this helper, especially for larger category trees?

Environment: Joomla 5 + VirtueMart 4.6.4

Thank you in advance

Please Log in or Create an account to join the conversation.

Replied by JProStudio on topic Category Module Helper Performance Issue

Posted 4 months 4 weeks ago #1052
We have a limited testing environment to debug a scenario like this so kindly share the site credentials for trouble shooting the actual issue. Thank you

For urgent help please create a support ticket extensions.joomlapro.com/support/tickets

Please Log in or Create an account to join the conversation.

Replied by JProStudio on topic Category Module Helper Performance Issue

Posted 4 months 3 weeks ago #1055
We’ve modified the multiple SQL calls used to build the category tree (child categories). I’ve attached the updated
Code:
helpers file
—please review the file and confirm the results at your end.Note: It’s recommended not to use this in the production environment before thorough testing. Thank you

 

File Attachment:

File Name: helpers.zip
File Size:2 KB

For urgent help please create a support ticket extensions.joomlapro.com/support/tickets
Last Edit:4 months 3 weeks ago by JProStudio
Last edit: 4 months 3 weeks ago by JProStudio.

Please Log in or Create an account to join the conversation.

Replied by keep2000 on topic Category Module Helper Performance Issue

Posted 3 weeks 1 day ago #1184
This message contains confidential information

Attachments:

Please Log in or Create an account to join the conversation.

Time to create page: 0.312 seconds
Powered by Kunena Forum