• Resolved jetxpert

    (@jetxpert)


    Good Day!

    We installed WP Crontrol recently only to find out that your plugin injected a cron that runs once a day.

    The cron is: tribe_common_log_cleanup

    Questions:

    (1) What is the purpose of the above cron? What type of cleanup does it perform?

    (2) How can we delete or disable it (permanently) or change the cron interval?

    It appears we will need a filter or code snippet from you to accomplish this.

    We searched your KB and “the net” but found nothing helpful.

    Thank you!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Chika Ibeneme

    (@chikaibeneme)

    Good day to you too @jetxpert !

    So > tribe_common_log_cleanup
    This is responsible for cleaning the Common log daily. It can probably be safely removed.

    Since you’re using WP control, i believe that you should be to delete/setup a custom rule to disable this particular cron from that plugin

    Thread Starter jetxpert

    (@jetxpert)

    Hi @chikaibeneme,

    Thanks for the quick reply and explanation.

    We tried to delete the cron using WP Crontrol, but didn’t work. So, as initially requested, please provide a code snippet (or method) for deleting the cron permanently or adjusting the cron interval.

    We’re not coders, so kindly consult your DevOps team for a solution.

    Thank you!

    Plugin Author Gustavo Bordoni

    (@bordoni)

    Hi @jetxpert,

    You can safely remove those from your website if you are not using our internal Logs for actively debugging problems.

    It’s specially helpful for us around Event Aggregator problems where logs might exist without visual errors.

    Like with more Crons you can disable it by removing the functions triggered on the action of the cron.

    
    remove_action( Tribe__Log::CLEANUP, [ tribe( 'logger' ), 'do_cleanup' ] );
    // or more aggressively
    remove_all_actions( Tribe__Log::CLEANUP );
    

    Pick one of the two above and you should be good to go.

    best Regards,

    Hi @bordoni,

    I can certainly use this. Thank you!

    Cheers!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Log Cleanup Cron | Need to Disable or Change Interval’ is closed to new replies.