• Resolved Tyler Tork

    (@tylertork)


    As shown here, Query Tracker shows that on my homepage the plugin wp-mail-smtp takes a third as long to do its stuff as the core WordPress engine. It’s not a HUGE delay, but this seems like more processing time than should be needed for a plugin that has no actual work to do during the rendering of this page.

    Could you please look into this and try to make the plugin a bit faster?

    Image URL: https://torknado.com/wp-content/uploads/2021/11/1.gif

    • This topic was modified 3 years ago by Tyler Tork. Reason: image didn't render!

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Gregor Capuder

    (@capuderg)

    Hi Tyler,

    we’re using Query Monitor and I just retested a logged-in frontend page load and I can’t reproduce any WP Mail SMTP queries.

    Could you please look into the actual queries that your WP site is labeling as WP Mail SMTP and let us know the list of these queries?

    Our plugin does not perform any DB queries on frontend page loads. It mainly operates in the admin dashboard or when an email is being sent from your site. We are using the Action Scheduler (AS) library and since we include it in our plugin code, these queries could potentially be marked as WP Mail SMTP. But even AS queries should not fire on each page load…

    Please let us know more details about those queries and we can look into what is happening on your website.

    Take care!

    Thread Starter Tyler Tork

    (@tylertork)

    14 SELECT option_value
    FROM wptt_options
    WHERE option_name = ‘as_has_wp_comment_logs’
    LIMIT 1

    get_option()

    Plugin: wp-mail-smtp 0 0.0005
    18 SELECT option_value
    FROM wptt_options
    WHERE option_name = ‘wp_mail_smtp’
    LIMIT 1

    get_option()

    Plugin: wp-mail-smtp 1 0.0005
    20 SELECT a.action_id
    FROM wptt_actionscheduler_actions a
    WHERE a.hook=’wp_mail_smtp_summary_report_email’
    AND a.status=’in-progress’
    ORDER BY scheduled_date_gmt DESC
    LIMIT 1

    ActionScheduler_DBStore->find_action()

    Plugin: wp-mail-smtp 0 0.0018
    21 SELECT a.action_id
    FROM wptt_actionscheduler_actions a
    WHERE a.hook=’wp_mail_smtp_summary_report_email’
    AND a.status=’pending’
    ORDER BY scheduled_date_gmt ASC
    LIMIT 1

    ActionScheduler_DBStore->find_action()

    Plugin: wp-mail-smtp 1 0.0005
    22 SELECT a.*, g.slug AS group
    FROM wptt_actionscheduler_actions a
    LEFT JOIN wptt_actionscheduler_groups g
    ON a.group_id=g.group_id
    WHERE a.action_id=413

    ActionScheduler_DBStore->fetch_action()

    Plugin: wp-mail-smtp 1 0.0006

    Plugin Author Gregor Capuder

    (@capuderg)

    Hi Tyler,

    as you can see all of the above selects are triggered by Action Scheduler library (which is bundled with our plugin). We are using AS to queue and process background tasks (more expensive tasks).

    Are these queries present on each page load on your site or did you have to refresh your site a couple of times in order to see those queries?

    These queries should not be present all the time, if they are, something is wrong with the AS set up on your site (or WP core cron scheduler). By default AS hooks up to the WP core cron scheduler which by default runs every minute. Did you maybe change that default value somehow?

    Take care!

    Plugin Support Darshana

    (@darshanaw)

    Hi @tylertork,

    We haven’t heard from you in about a while, so I’m going to go ahead and mark this ticket resolved.

    If you still have questions, though, please feel welcome to continue the conversation.

    Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Performance concern’ is closed to new replies.