Yes, in games you cannot avoid personalization to much because each turn depends on the player context.
Still, I think you can analyse your database accesses and use caches to prevent retrieving the same database results, even though you do not have much to cache in your game HTML pages.
What you can do is to store frequently retrieved database results in arrays, serialize the array into a string, and the store the serialized string in a cache.
It is not worth caching page headers and footers when those are not built from data retrieved from database.
You can however use a cached template engine like Smarty, and use a PHP code cache extension like Turck, APC, eAccelerator, etc.. to speedup execution. I have not mentioned that in this article, but it is a very important step to deal with server overload. |