I have created a periodic action to be started on page load to have auto refresh of some functions every 5 minutes, but whenever the page is reloaded, a new periodic action starts while the old one is still running.
If I load a page at 0th minute, the periodic action is set to reload the page at 5th minute, 10th minute, 15th minute, so on. This is expected outcome. But If I reload the page manually say at 3rd minute, a new periodic action is started again and from now the page refreshes at 5th minute, 8th minute, 10th minute, 13th minute, so on. How do I fix this?
I tried checking by using isPeriodicAlive option and start periodic only if there is nothing running but still that doesn't fix my problem. Any help is appreciated..
Thanks.