Hey Quebro,
Great question. The concern for doing it so frequently is that it has the possibility of causing your site to crash.
The way the plugin works is that the user’s browser will check with the website every two minutes to make sure it’s up to date, and if not it’ll refresh. If the interval time were to change to a lower number, like two seconds, the browser would have to check with the website 30 times per minute. If there are multiple users on the site, it would have the possibility of bringing your site down. One of the solutions I’m thinking about in the future is the use of web server sockets, but that might take a little bit of development to iron that all out.
In the interim, I’ll look at adding options for the interval time (maybe selecting times between 30 seconds and 120 seconds). Does that sound like a good solution to you?
Jordan
Quebro,
Just a heads up that I have migrated this enhancement request to GitHub. I’m going to close out the request here (since it’s not a support issue) and will post future updated on GitHub. While I don’t have an estimated turnaround time for this, I’ll try to remember to reach out to you if it’s included in a future update.
The issue tracker on GitHub will be at https://github.com/jordanleven/wp-force-refresh/issues/3.
–
Jordan
Thread Starter
Quebro
(@quebro)