• In WP Crontrol plugin I have created the php cron event in plugin setting but my event not run automatically i have to run it manually.

    • This topic was modified 6 years, 3 months ago by nitinv.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi nitinv,

    From the WP-Cron developer documentation:

    WP-Cron works by: on every page load, a list of scheduled tasks is checked to see what needs to be run. Any tasks scheduled to be run will be run during that page load. WP-Cron does not run constantly as the system cron does; it is only triggered on page load. Scheduling errors could occur if you schedule a task for 2:00PM and no page loads occur until 5:00PM.

    You schedule your event again and open a couple of pages right after the event time to see if the cron will run. This should have you determine whether the’s areal problem or not.

    Thread Starter nitinv

    (@nitinv)

    yes i schedule the event for particular time for my rss feed but it is not showing on my website.Also when i run my site on local server my feed is showing but not working on my live server.

    This is my code :

    // Set up the environment
    if ( ! defined(‘ABSPATH’) ) {
    require_once( dirname( dirname( dirname( dirname( _FILE_ ) ) ) ) . ‘/wp-load.php’ );
    }
    require_once( ABSPATH . ‘wp-admin/includes/admin.php’ );
    define( ‘WP_LOAD_IMPORTERS’, true );
    require_once( WP_PLUGIN_DIR . ‘/podcast-helper/includes/rss-importer/class-podcast-rss-import.php’ );

    // Run manual import process, replace the first parameter to the URL of your feed
    Podcast_RSS_Import::run_import( ‘https://communicationdiva.libsyn.com/rss’, $import_category = ‘career’, $import_attachments = true, $import_settings = false );

    I am using this plugin https://www.ads-software.com/plugins/wp-crontrol/

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Cron events not executed automatically’ is closed to new replies.