• Resolved yydevelopment

    (@yydevelopment)


    Hi, i am using plugin called WP Crontrol to view crons on the site.

    It seems like the litespeed plugin has 4 crons that are running every minute and cause some problem on shared hosting.

    • litespeed_task_vpi
    • litespeed_task_imgoptm_pull
    • litespeed_task_avatar
    • litespeed_task_lqip

    Can i change the crons to run every hour? and can i do that from your plugin settings or do i have to use outside plugins like WP Crontrol to do that?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support qtwrk

    (@qtwrk)

    they should be light-weight it mostly , except the image optm when it’s running

    I’d suggest not to , no control from our plugin , you have to do it with other plugin like the one you mentioned.

    Thread Starter yydevelopment

    (@yydevelopment)

    Hey, thanks but it seeems like i have to reduce the cron or move hosting (which i might do).

    Any chance i can read or understand somewhere what the cron do?

    Plugin Support qtwrk

    (@qtwrk)

    as name suggests they will check for VPI , image optm pulling , avatar cache and LQIP generation

    if you don’t have these options enabled , the cron will exit immediately after it is executed

    Thread Starter yydevelopment

    (@yydevelopment)

    Thank you, i am trying to remove all your crons but it seems very messy.

    For starter in some cases even if i remove the cron from the settings it doesn’t work and i need to turn the option on and off few times and then something it fixes the problem.

    Second, when i update the plugin even if i turned off the crons they come back on and i need to turn things off and on again.

    Third it seems like i can’t cancel the cron even with code.

    $timestamp = wp_next_scheduled( ‘litespeed_task_vpi’ );
    wp_unschedule_event( $timestamp, ‘litespeed_task_vpi’ );

    Thsi code allow me to remove any one crons on the website, but it doesn’t work on your crons and i tried other codes as well.

    Is there a way to force your plugin to not load any crons on your site with code?

    Thanks for your help

    Thread Starter yydevelopment

    (@yydevelopment)

    I was finaly able to find this code to force your crons to stop

    add_action('init', function() {
    
        if( wp_next_scheduled('litespeed_task_avatar') ) {
            $timestamp = wp_next_scheduled('litespeed_task_avatar');
            wp_unschedule_event($timestamp, 'litespeed_task_avatar');
        } // if( wp_next_scheduled('litespeed_task_avatar') ) {
    
    }); // add_action('init', function() {
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Four crons running every minute’ is closed to new replies.