• Resolved anonymized-13749270

    (@anonymized-13749270)


    Thank you for the awesome plugin!

    One thing though, implementing this plugin, while debugging the background jobs list I noticed you schedule custom events each 1 second? and what’s crazy is the actions hooked to these events query the database..

    In admin/class-uci-admin.php:467 :

    public static function cron_schedules( $schedules ) {
    		return array(
    			'wp_ultimate_csv_importer_scheduled_images' => array(
    				'interval' => 1,
    				'display' => __('Schedule images on every second', SM_UCI_SLUG)
    			),
    			'wp_ultimate_csv_importer_scheduled_emails' => array(
    				'interval' => 1,
    				'display' => __('Schedule emails on every second', SM_UCI_SLUG)
    			),
    		);
    	}

    I am only saying this is a bad performance practice and the events might fail given that each one runs before the other completes..

    Hope I am wrong.

    Thank you.

    Best,
    Samuel

Viewing 1 replies (of 1 total)
  • Plugin Author Smackcoders Inc.,

    (@smackcoders)

    Hi Samuel,

    Appreciate your efforts in looking into the code and raising the issue. We will take this as the priority and make the necessary changes to remove the bad performance code.

    Thanks for your compliment about the plugin.

    Thanks.

Viewing 1 replies (of 1 total)

The topic ‘Crons every 1 second’ is closed to new replies.