• Resolved dyba03

    (@dyba03)


    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)
  • Plugin Contributor Shafaet Alam

    (@shafayat-alam)

    Hi,
    count_user_posts is a wp’s native function. However, no worry, we shall omit the function with the next update.

    Thread Starter dyba03

    (@dyba03)

    Great! I will wait for the update.

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.