The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Intro on caching & datastore
Anyone kind enough to write a quick intro on template caching and datastore? Basically:
|
#2
|
|||
|
|||
Quote:
Quote:
Quote:
|
#3
|
|||
|
|||
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. |
#4
|
|||
|
|||
Templates are already preparsed and stored like that.
|
#5
|
|||
|
|||
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! |
#6
|
|||
|
|||
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. |
#7
|
|||
|
|||
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?
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|