i have a function that build query depending on which page user is at, by parameter array value, once it build the query, then it returns, so we can execute it and get the desire result we want.
well we need to put cache on it, so we can speed up things and im really confuse on how to make cache id, sence the query is kind of dynamic (depending on array value), which can also have search value too, which changes the result also, time to time, depend on what you are searching for.
my question is, is there anyway i can use the return query (select * from... .. ..) and make and id of it, maybe using md5 or some other way, which stay same if query is same and changes if query is different?