The plugin creates a slow query to the database
-
The site according to Query Monitor has a slow query that is generated by the WordPress Download Manager plugin. Call source – count_user_posts
SELECT COUNT(*) FROM wp_posts WHERE ( ( post_type = 'wpdmpro' AND ( post_status = 'publish' OR post_status = 'private' ) ) ) AND post_author = 1
count_user_posts WPDM\Package\PackageController->prepare WPDM\Package\PackageController->fetchTemplate WPDM\Package\Shortcodes->singlePackage do_shortcode_tag preg_replace_callback do_shortcode
Can you tell me how to cache it? For example using wp_cache_get ?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘The plugin creates a slow query to the database’ is closed to new replies.