vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Datastore prefix question (https://vborg.vbsupport.ru/showthread.php?t=262006)

Boofo 04-14-2011 03:49 PM

Datastore prefix question
 
Is there a way to pull the datastore prefix for a variable in the datastore like they do with the table_prefix? I tried this but it doesn't work:

Code:

$new_datastore_fetch[] = " . DATASTORE_PREFIX . "boofocounter;

I got a report from someone that the counter didn't work. It turned out they had a datastore prefix set in the config file:

Code:

$config['Datastore']['prefix'] = 'something';

Once they removed the prefix, the counter started working.

Lynne 04-14-2011 04:36 PM

function build_prefix_datastore ?

Boofo 04-14-2011 04:42 PM

Ok, but how would you pull the datastore info from a prefixed datastore, and yet be able to pull it from a non-prefixed datastore if there is no prefix? It states in the config file that it woks something like the table_prefix does.

Lynne 04-14-2011 09:21 PM

Hmmm, that is not what I was thinking it was - that's what happens when I do something in a hurry!

The only place I see it used is in vB_Datastore in class_core.php.

I really am not gonna be much help here as I'm not that familiar with the whole datastore cache stuff. :/

Boofo 04-14-2011 09:52 PM

This is the first time I have run into the need for needing the datastore prefix myself, so we're both in new territory. Plus, I'm probably not explaining very well what I'm trying to do, so that gets tossed into the mix, also.


All times are GMT. The time now is 10:43 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
  • Page Generation 0.00934 seconds
  • Memory Usage 1,711KB
  • 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
  • (2)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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