![]() |
Store data in datastore
Hi Guys,
I want to store some data from my plugin in the datastore so i don't have to query the database all the time. I tried to do this by: build_datastore('mytest', "test", 0); and this actually saves it in the datastore table. However i cannot access it by either: $vbulletin->mytest or $vbulletin->datastore->mytest Both return NULL. Any idea? |
You need to arrange for it to be loaded by adding your name to the $new_datastore_fetch array, using hook location init_startup. Unfortunately I believe this does add a query if no other plugin has added anything to $new_datastore_fetch, but at least any added will be combined in to one query. Since the plugin code itself is read from the datastore, of course it's not possible to specify in a plugin that something else be loaded in that same query (but you could do it by editing the vb files).
|
All times are GMT. The time now is 04:46 AM. |
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:
|