I’ve been doing RPG game recently and every page load I have to use mysql_query (and this query quite big, takes a few tables with inner join) to take information about player.
How can I avoid this query sometimes? Of course I can use cache and make query for example every 30 secs, but it won’t renew new information instantly. So, any ideas?
I’ve been doing RPG game recently and every page load I have to use
Share
If the amount of info is limited, and specific for your player, you can put it in
$_SESSION.