jordanleven / force-refresh

Force Refresh is a simple plugin that allows you to force a page refresh for users currently visiting your site.
https://wordpress.org/plugins/force-refresh
6 stars 2 forks source link

Schedule Refresh as part of the WP Cron #8

Open jordanleven opened 5 years ago

jordanleven commented 5 years ago

Feature request from Wordpress.org:

Love the plugin!

Is there a way to trigger it via CRON? My desire is to force a page to reload daily…

Any advice or suggestions greatly appreciated!

STV11C commented 1 year ago

Hi @jordanleven - Just wondering if you plan to integrate this option into the Plugin? It's great that you can manually refresh when required, but I also need to add an automatic daily refresh. I look forward to hearing from you. Thanks!

jordanleven commented 1 year ago

Hey @STV11C - this isn't actively being worked on but PRs are welcomed!

jordanleven commented 1 year ago

Hey @STV11C - I know this is a very old thread but I wanted to update you that I am currently working on adding support for scheduled refreshes for the site in the next major version (3.0.0). Let me know if you are interested in beta-testing some of the upcoming builds!

Notably, this wouldn't add the ability to add reoccurring refreshes, but it would be a foray into scheduled refreshes that, over time, could be updated to support reoccurring refreshes (since it uses WP Cron under the hood).

STV11C commented 1 year ago

Hey @jordanleven! Thanks for reaching and happy to give it a go :)

jordanleven commented 1 year ago

Sounds great. I have the schedule working but am finishing up work on deleting scheduled crowns. I'll get back to you in a bit when I have a beta available.

Thanks!

jordanleven commented 1 year ago

Hey @STV11C - I have the first available beta here if you're interested. This includes the ability to schedule refreshes in the future using WP Cron. Just download the file under Assets (Force_Refresh_v2.8.2-B80A28.2.zip) and replace your current install of Force Refresh.

Take a look and let me know what you think!