SELECT a.* b.* c.* FROM TOPIC a, BOARD b, MSGS c WHERE c.MessageID = 1 AND a.TopicID = c.MessageID AND b.BoardID = c.BoardID
How to memcache this data? - set_cache("MY_WACKY_QUERY_1", data) note: 1 is the message id
Now there are lots of places in the code which update these 3 tables (independantly of each other), so we need to del_cache("XXX_1") whenever any of these updates and inserts affect MSGS, TOPIC, or BOARD data for, or relating to, the message with id 1
Is there an easy solution? I'm stumped... Any ideas?