← Funktionswünsche

Slow Request on every page call

Abgeschlossen Felix 4 Jahren vor

I noticed that on every page call, the function wcusage_page_contain_shortcode() is executed that takes about 0.2 sec to finish.
That slows down the page quite a bit and I do not understand why this database query is necessary on every page call. It looks like this should be call once and then be stored globally, since it’s not a specific call for every page, it’s a very generic query.

2 Kommentare

Felix 4 Jahren vor

here is a screen shot

Elliot Sowersby 4 Jahren vor

Hi Felix,

Thanks for the feedback.

This is used to check if the loaded page contains any of the plugins shortcodes, in order to load the required scripts, and removes any javascript deferring for the page.

However, with your feedback in mind, in version 5 (currently in testing/beta) we will be improving this query to be much faster, so it doesn't affect the speed of other pages.

Thanks again.

This request is closed for new comments.