The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Where should I store these variables?
I am planning on creating some custom stats once per day and storing the results in a mySQL table.
I'd like to display the stats on FORUMHOME and a few other places. I'm thinking that adding another query to each of these pages for information that is only updated every 24 hours may be a waste of resources.
Thanks, James |
#2
|
||||
|
||||
You can use the vBulletin datastore to store such data. I believe there is an article about this - look for it.
|
#3
|
||||
|
||||
Datastore is definitely the way to go. Have yur script run as a scheduled task once per day, storing the info in the datastore, then using a plugin in forumhome you can simply acces the data using $vbulletin->mydatastorefield. The article Dismounted mentions above is excellent. I think you can find it by searching the articles forum for the term cache or serialize
|
#4
|
|||
|
|||
Thanks for the replies Dismounted & Antivirus.
I didn't realize (until now) that the vBulletin datastore could be extended this way. It sounds like just the solution I need. Thanks again, James |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|