In order to speed up performance, I want to cache the query result sets into somewhere so that php can read them directly and quickly instead of connect to mysql every time information is getting retrieved. But I don't know where I should store query result set. Can someone give me some direction on this? Thanks.
get a [man]var_export[/man] of your array by setting the second command to true - just slap some tags around that with a variable to assign it to, scribble it to the drive, next time you come along just include it straight back in.