I have a table that contains the information about the current location(lat,lng) of user and from my php script i will query the table to find the other users that are surrounding him within some distant(like 50Miles). And each of the=is query may result large data set.
The above query is executed more in my app. But I know that the result contains same data for a user at least for 5 mins.
If i cache the sql query for 5 mins for particular user then i can read from cache instead of querying. After 5 mins i have to query the table as the other users location get updated.
How to solve the above situation ? Any caching techniques for php and mysql ?
Thanks, Seshachalam M