Log in

View Full Version : Caching Data


AnhTuanCool
01-15-2006, 07:29 PM
Hello all,
I'd like to know a general idea how the caching system work in vBulletin (eg. cache post, thread...). The thing is I wrote a hack and it basically calls up something from database as the post is fetched without caching (query directly from database). Due to the size of the query that it somehow slows down the fetching process, and the whole server. Thus, I see that it's not efficient to have the script querys the same thing everytime. So if I could somehow cache the extra data of the hack into the post cache or something, that'd be awesome. So is there anyone know what I am talking about and how to do this, please share your thoughts. Thanks a lot in advance.

Adrian Schneider
01-15-2006, 07:36 PM
You could serialize the data and put it into the datastore.

AnhTuanCool
01-15-2006, 07:51 PM
Thanks SirAdrian, could you also give me an example code (within vbulletin default) where the function is used?