Background tasks, cron jobs, PHP forking

  • Unknown's avatar

    Dear team,

    I’m a developer working on a WordPress plugin that will be used on several WordPress websites my client may host with you.

    As I design the plugin, may you please answer the following questions below:

    Q1. Can a plugin be installed that will create additional tables in the WordPress database? The plugin uses $wpdb global variables to run SQL queries, including creation / delete of the custom tables on plugin activation/deactivation.

    Q2. We need to run some tasks in background, but we cannot rely on the native wp-cron functionality because: a) we need to run the tasks minutely; b) a single task run in background may take anywhere from 10 to 100 seconds (issuing HTTP requests to 3rd party API, which can be slow by their documentation as it involves communicating to other 3rd party services). Hence the question: what tools are available on your platform to run scheduled tasks?
    a) is there an admin panel to schedule a cron task minutely and specify a custom file from a plugin directory to execute?
    OR
    b) can we fork a current PHP process?
    OR
    c) any other means for scheduled tasks?

    Thanks.

  • Unknown's avatar

    Hi there,

    This forum provides assistance to the only site hosted on WordPress.com.

    You would get help at the below forum:

    https://wordpress.org/support/

    Further to know more about the differences between WordPress.com and WordPress.org you can read this document:

    https://en.support.wordpress.com/com-vs-org/

  • Unknown's avatar

    Yes my question is related to hosting websites are WordPress.com, hence asking in this forum.

  • The topic ‘Background tasks, cron jobs, PHP forking’ is closed to new replies.