In generateblocks-pro/includes/styles/class-styles.php function: get_styles() you have a posts_per_page argument which is can be modified to a different limit. However since you are not using pagination, the database query will still try and caculate the total number of pages.
To fix this, we can add 'no_found_rows' => true as an argument to the WP Query for better performance
Description
In
generateblocks-pro/includes/styles/class-styles.php
function:get_styles()
you have aposts_per_page
argument which is can be modified to a different limit. However since you are not using pagination, the database query will still try and caculate the total number of pages.To fix this, we can add
'no_found_rows' => true
as an argument to theWP Query
for better performanceReferences:
Performant WordPress Queries