I am trying to figure out how to cache 'chat' for a site that uses php, and the variables passed need to have unique versions per variable. ie: the chat cache for id 1 shouldnt be the same as id2, since id1 doesnt need to see id2s private messages.
In C#, you can use something akin to:
<%@ OutputCache Duration="4" VaryByParam="param1;param3" %>
This caches the page for 4 seconds, and will cache unique copies if the param1 and param3 are different between the cached pages.
Is there such a thing in php?