vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   datastore retrieval (https://vborg.vbsupport.ru/showthread.php?t=188324)

VodkaFish 08-16-2008 05:56 PM

datastore retrieval
 
I just upgraded from 3.6.7 to 3.7.2

I was accessing something from my datastore like this:
$parse = $vbulletin->datastore->registry->mystuff;

Then I'd use $parse to parse the post message.

After the upgrade $parse is null.

However, if I do this, all is well:
$setup = $vbulletin->datastore->do_db_fetch("'mystuff'");
$parse = $vbulletin->mystuff;

I can then use $parse properly.

I once had a problem with getting data from the datastore before, but this is different (just in case anyone recognizes this somewhat).

Was anything changed in 3.7 that would disallow my original method?

Does the way I have to do it now create any extra load on my db (this is for a decent size forum)?

Opserty 08-16-2008 06:11 PM

PHP Code:

$vbulletin->datastore->do_db_fetch("'mystuff'");
$parse =& $vbulletin->mystuff

Would probably work just as well. The datastore fetch, most likely it returns a boolean on success/failure or something. Check the actual PHP code behind the function to see what is going if you really want to know.

VodkaFish 08-16-2008 07:05 PM

That seems like a lot of digging. If this isn't brutal to my server, I'll stick with what works, thanks :)

Opserty 08-16-2008 07:17 PM

<a href="http://members.vbulletin.com/api/vBulletin/vB_Datastore.html" target="_blank">vB_Datastore</a>


All times are GMT. The time now is 07:33 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
  • Page Generation 0.01833 seconds
  • Memory Usage 1,709KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete