About wp_actionsscheduler_xxxx tables

#107525
  • Hello,

    I am currently testing Rank Math and I am performing different tests.
    One of the test I am doing concerns the deletion of the plugin in WordPress.
    Doing that I found even after adding the below statement in the functions.php file, 4 wp_actionscheduler_xxxx tables are remaining.
    – add_filter( ‘rank_math_clear_data_on_uninstall’, ‘__return_true’ );

    Why they are not deleted when the plugin is deleted while they are created by the plugin?

    How can they be properly deleted from the database?

    Thank you
    Regards
    Jean-Pierre

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hello,

    Thank you for contacting Rank Math and sorry for any inconvenience that might have been caused due to that.

    The filter should clear all tables related to Rank math. Are you sure the remaining wp_actionscheduler_xxxx tables are from Rank math? These tables can come from a number of plugins other than Rank math.

    You can check what data is contained in these tables to see if it is actually data related to Rank math.

    Looking forward to helping you. Thank you.

    ​​​​​​​

    Hi Michael,

    What I am sure, they are created in my database when I activate Rank Math after the installation.
    I just ran a new installation in my database after I deactivated ALL plugins.
    After that the 4 tables have been created as soon as I activated Rank Math.

    If I deactivate Rank Math and then I activate it again, every time 2 new entries are added in wp_actionscheduler_actions table.
    In the hook column of wp_actionscheduler_actions it is written “action_scheduler/migration_hook” for both new created actions.

    The wp_actionscheduler_claim and wp_actionscheduler_groups tables are empty.

    In the wp_actionscheduler_logs table I can see the results of each actions:
    – action created
    – action started via WP Cron
    – action complete via WP Cron

    Do you have an idea why Rank Math creates these tables?
    Is there a condition that is causing Rank Math to create these tables?

    Thanks for your help
    Regards
    Jean-Pierre

    Hi Michael,

    In my previous reply I made a mistake….The wp_actionscheduler_groups table is not empty but contains “action-scheduler-migration” value in the slug column.

    Regards
    Jean-Pierre

    Hello,

    Those are created to make the ANalytics module work and pull data from your search console and Google Analytics profiles.

    Moreover, wp_actionscheduler is a WordPress script that many plugins including Rank Math utilize for creating scheduled actions. You can remove that manually if you want.

    Hope that helps and please do not hesitate to let us know if you need our assistance with anything else.

    Hi Uzair,

    Ok, I understand.
    Thanks
    Jean-Pierre

    Hello,

    We glad to be of help and happy that the issue is resolved.

    If you need further help or with anything else, please open a new support ticket here so we can help

    We are always here for assistance.

Viewing 6 replies - 1 through 6 (of 6 total)

The ticket ‘About wp_actionsscheduler_xxxx tables’ is closed to new replies.