WordPress.org

Ready to get started?Download WordPress

Forums

DB Cache Reloaded Fix
Cron Schedule Issues (4 posts)

  1. gtim19
    Member
    Posted 2 years ago #

    I'm running a multi site and installed this plugin 2 days ago. Since then we have been having some issues with our wp-cron.php file bombing out. I checked our cron schedule, and there were hundreds of entries for a "clean_cache_event" to run every hour. The only reference to that name "clean_cache_event" I could find were on this plugin.

    Do you remove this cron even when the plugin in uninstalled?

    http://wordpress.org/extend/plugins/db-cache-reloaded-fix/

  2. Ivan Kristianto
    Member
    Plugin Author

    Posted 2 years ago #

    Yes i do clean it after proper uninstall.
    You can find this code:
    wp_clear_scheduled_hook('clean_cache_event');

    It means to clear the clean_cache_event from the hooks.
    THanks

    Ivan

  3. elena.tanasoiu
    Member
    Posted 1 year ago #

    Hi,

    I am having the same problem, your solution did not work for me. I have however found an alternative:

    Here is a function to remove the clean cache event:


    function wpse39681_clear_all_crons( $hook ) {
        $crons = _get_cron_array();
        if ( empty( $crons ) ) {
            return;
        }
        foreach( $crons as $timestamp => $cron ) {
            if ( ! empty( $cron[$hook] ) )  {
                unset( $crons[$timestamp][$hook] );
            }
        }
        _set_cron_array( $crons );
    }

    The hook parameter in this case is "clean_cache_event". This plugin has been giving me some problems, as it was scheduling at least twenty cron jobs per minute and failing. Hence I would get 1GB-sized log files every half an hour. You can imagine my frustration.
    `

  4. ogergo
    Member
    Posted 1 year ago #

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic