![]() |
Intro on caching & datastore
Anyone kind enough to write a quick intro on template caching and datastore? Basically:
|
Quote:
Quote:
Quote:
|
Got it - so the template "cache" is not really a cache, but an aggregator, on the queries.
I seem to get slowed performance the first time I load a page after modifying it's template - but I guess that must be do to MySQL or OS caching, not vB then, yes? Too bad there is no "real" caching done, then. I would guess that 90% of the html could go into a cache (ie, is not personalized), and that a cache could get up to a 50% hit rate. Think about it: Cache the html for forumbit, threadbit, and postbit - everyone's looking at the recent ones - you're talking a major speed up. |
Templates are already preparsed and stored like that.
|
I was referring to storing the actual rendering of the particular bit, not the generic template.
Example: This thread so far has 4 post bits. They could be cached, with full html (provided we don't mind if the post count under each user gets a bit old) - major performance increase! |
That would be extreme difficult to do i guess, for a few reasons:
- It is dynamic content - Content can be different depending on the viewer (permissions, buddies, postdate/time/timezone,....) - on a busy forum with a lot of posts, the cache would get so big that searching the cache would take so much time that it has a reverse effect. And probably many more reasons. |
How would one place data into the datastore and pull it back out. For example if you wanted to do something easy like sum up all a forums views and output on the forumhome page and use the datastore to avoid querying on each page load?
|
All times are GMT. The time now is 04:51 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|