• Resolved ryangfni

    (@ryangfni)


    hello the below query is being triggered on my cron job, its taking 20sec to complete as there is 200,000+ users in our database.

    Is it safe to disable this cron job by commenting out line 70 in /wp-persistent-login/wp_persistent_login.php?

    Many thanks

Viewing 1 replies (of 1 total)
  • Plugin Author lukeseager

    (@lukeseager)

    Hi, yes it is safe to comment out this cron job. The cron job simply counts the number of logged in users and provides that data in the Persistent Login dashboard.

    Alternatively, you could try reducing the speed of the user count (count less users each time) to reduce the time of the query. Please see this guide to find out how to do that if it is of interest: https://persistentlogin.com/how-to-change-the-speed-of-the-user-count/

Viewing 1 replies (of 1 total)
  • The topic ‘Cronjob taking 20sec database query to count users logged in’ is closed to new replies.