![]() |
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 |
You can use the vBulletin datastore to store such data. I believe there is an article about this - look for it.
|
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
|
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 |
All times are GMT. The time now is 02:40 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:
|