Greetings!
I need some help with preventing users from updating certain stats too often as it’s
putting too much strain on the server. Ideally, I would like the below code to first
check my ‘updated’ timestamp against current time, and if it’s less than 30 minutes to display
a message, otherwise proceed with the update.
Currently it looks like this:
[php] if (isset($_GET[‘refresh’]) && $_GET[‘refresh’] == “true”)
{
do stuff…
}[/php]
My last ‘updated’ timestamp can be fetched like this:
[php]$data[‘updated’][/php]
Any ideas?
Thank you.