tyteen4a03
Well-known member
(Have I asked this before? The month-long vacation totally caused some memory loss...)
So I have things I need to cache. It's a small piece of serialized array that is generated for every user. Pages use the user's cache entry and other users' cache entry.
How would you cache them efficiently?
My ideas are:
So I have things I need to cache. It's a small piece of serialized array that is generated for every user. Pages use the user's cache entry and other users' cache entry.
How would you cache them efficiently?
My ideas are:
- Extra field in user table - I'm not quite sure how to make every user fetching query automatically fetch my extra field, so there's a little bit of problem.
- (Ab)use the DataRegistry to store one row per user (with A Dirty Hack in place for my Usergroup Ranks addon) - It Just Isn't Right, and kind of inefficient as well since this practically violates 2NF(?)
- Use the DataRegistry and store the caches in reasonably-sized chunks - it seems to be the way to go, but I have yet to write code that does this.
Last edited: