Skip to content

feat: Replace WP-Cron with Action Scheduler for reliable auto-sync#1286

Open
HardeepAsrani wants to merge 3 commits intodevelopmentfrom
feat/cron
Open

feat: Replace WP-Cron with Action Scheduler for reliable auto-sync#1286
HardeepAsrani wants to merge 3 commits intodevelopmentfrom
feat/cron

Conversation

@HardeepAsrani
Copy link
Member

@HardeepAsrani HardeepAsrani commented Mar 17, 2026

Summary

PR Pro: https://github.com/Codeinwp/visualizer-pro/pull/573

Switches the scheduled data refresh hooks in both the free and pro plugins from WP-Cron to Action Scheduler, which is bundled via Composer.

Will affect visual aspect of the product

No

Screenshots

Test instructions

Prerequisites: Visualizer + Visualizer Pro installed with an existing sync schedule configured
WP-Crontrol installed

  1. Migration from Existing Install
    • Confirm visualizer_schedule_refresh_db and visualizer_schedule_import exist in WP-Crontrol
    • Update both plugins to this build and visit any wp-admin page
    • Confirm both hooks are gone from WP-Crontrol
    • Confirm both appear in Tools → Scheduled Actions under the visualizer group with no duplicates
  2. Sync Fires Correctly
    • In Tools → Scheduled Actions, find visualizer_schedule_import and click Run
    • Confirm the chart data updates and the next run is re-queued
  3. WP-Cron Disabled
    • Add define( 'DISABLE_WP_CRON', true ); to wp-config.php
    • Trigger visualizer_schedule_import manually from Tools → Scheduled Actions
    • Confirm the chart still syncs successfully

Check before Pull Request is ready:

Closes https://github.com/Codeinwp/visualizer-pro/issues/555.

@HardeepAsrani HardeepAsrani added the pr-checklist-skip Allow this Pull Request to skip checklist. label Mar 17, 2026
@pirate-bot pirate-bot added the pr-checklist-complete The Pull Request checklist is complete. (automatic label) label Mar 17, 2026
@pirate-bot
Copy link
Contributor

Plugin build for 5eaa6a1 is ready 🛎️!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-checklist-complete The Pull Request checklist is complete. (automatic label) pr-checklist-skip Allow this Pull Request to skip checklist.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants