Skip to content

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

Merged
HardeepAsrani merged 4 commits intodevelopmentfrom
feat/cron
Mar 20, 2026
Merged

feat: Replace WP-Cron with Action Scheduler for reliable auto-sync#1286
HardeepAsrani merged 4 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

pirate-bot commented Mar 17, 2026

Plugin build for 70427dd is ready 🛎️!

@HardeepAsrani HardeepAsrani merged commit bc14d4b into development Mar 20, 2026
7 of 8 checks passed
@HardeepAsrani HardeepAsrani deleted the feat/cron branch March 20, 2026 13:35
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