![]() |
Datastore inside plugin code
Hi again!
I'm basically through with my adminCP code of the plugin, while working on the code integration of the plugin itself, i got a little problem. Due to caching mechanisms, I used datastore to store some information via cronjob. If i want to access this information via adminCP file, it works with this code: PHP Code:
PHP Code:
Inside the plugin code which should actually display the plugin on the forumhome page, I can't access the cache var. $vbulletin->my_plugin is NULL. Obviously I have to tell vB that this cache should be loaded too. So I tried adding this line to my cache_template -hook: PHP Code:
Any advise how and where i have to add the cache identifyer to? |
In global_state_check hook ;
PHP Code:
|
Nice and simple. Thx Mr. Paul :)
|
All times are GMT. The time now is 10:03 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:
|