Quote:
Originally Posted by kh99
You could do something as simple as using a global variable array with the key being the userid and the value being whatever data you want to save (the query result or some other data you need from it). Then just check the array before you do a query, and if the data isn't there, do the query and save the results in the array.
ETA: ... but of cours ethat would just keep you from repeating the same query multiple times for one page request. Rereading what you asked, I guess you'd want something that would save the data for multiple page requests?
|
Yes, I'm not sure how to make use of the built in cache fucntions, similar to the forum cache, so that every query does not have to query the forum/forum permission tables.