I've been using the following lines of code to pull custom data from the datastore table:
PHP Code:
$vbulletin->datastore->fetch(array('customname'));
$data = $vbulletin->customname;
However, I noticed that it adds an extra database call, which means I can't actually take full advantage of the caching system in vBulletin that way.
Question is, would there be a better approach to this to avoid the extra db load to the server? Perhaps another way to hook the "customname" to the default items loaded from the datastore?
Thanks!