How would i go about limiting a page refresh and thus curl fetch to one per minute (or 5, etc)? An example would be to pull the price of an item on Amazon, the user is limited to one fetch per minute, after that minute is up he can refresh for an updated fetch, until then he is told to try again in a minute.
Share
You can store the last fetch timestamp in session for the user. When new refresh requested you need to verify the previous time stamp difference with latest and see the difference is fine or needs to wait.