Avatar

Server load (Technics)

by Alex ⌂, Sunday, April 22, 2007, 21:12 (6208 days ago)

With the new BB Code parser class and the function to quote messages the server load is comparatively high - especially when opening complete threads. A caching feature could therefore make sense. Unfortunately caching the whole pages isn't useful as the pages are too "dynamic" (they depend on the type of user, the user's time zone etc.). So the built in caching functionality in Smarty cannot be used either.

Thus I thought to implement another database table for already parsed messages (paragraphs with parsed bb codes in HTML). By calling a message it is checked whether the parsed message already exists. If yes it's taken as it is, if not the message is parsed and saved into the cache table. Additionally the cache has to be updated (or just deleted) when editing a posting.

Any other ideas or suggestions on this?

locked
6424 views

RSS Feed of thread