Support » Plugin: DB Cache Reloaded Fix » [Plugin: DB Cache Reloaded Fix] Cron Schedule Issues

  • 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/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Ivan Kristianto

    (@ivankristianto)

    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

    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.
    `

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: DB Cache Reloaded Fix] Cron Schedule Issues’ is closed to new replies.