Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 01-16-2007, 11:40 PM
Krawall Krawall is offline
 
Join Date: Jan 2007
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Datastore question

Hi,

I'm new here and I hope this is the correct place to ask. I have asked over at vbulletin.com and they told me to ask here, so I do.

Sorry, I'm seeing it's a lengthy post. ===>

The datastore - I see that in my config file the datastore setting was left out from the beginning, so I assume stuff is being cached in the db.

Then I thought that's not a good idea because we will have many many [repeat that: many] forums / subforums and the forumcache field will go crazy big. So i changed that to file-caching. But guess what, it seemd to change to file on my development machine but not the life server.

Anyhow, no big deal I thought, but lets hack some code so the subforums under a certain forum will not show up in the admincp (because it will be 1000's later. Explain: We have lotsa system generated sub-forums under a parent forum and I would edit them through a custom link to prevent loading a huge list of forums and make the admincp unusable) and, alas, they didn't show up. Success! (actually, I hacked the creation of iforumcache, I thought that's an own one for the admincp)

But the cool thing is I couldn't get them back anymore, nowhere. I mean, like I have custom links to access these forums, and these links work great, it's just the forums don't appear in the forumcache, so you get a page "you don't have permission to view bla bla"

No big deal I thought, I hacked it wrong, try again but first lets delete the forumcache it'll "sureley rebuild itself"

But then all was gone. Though I had a backup.

Still then, when all the forums didn't show up, they were in the database. Some forums are still missing now, but they are in the database because my forumcache backup is oldish.

So I wonder:

What the bing is the forumcache about. It's not a cache it seems, it's looking to be even prioritized over the database in each and every respect. I have many forums in my (test-)database but they won't appear anymore.

I tried rebuilding the cache with the tools.php file and even it tells me "success. proceed", it ain't change nothing.

There must be a clear way to update the caches, I think.

And I would appreciate if there was some fundamental information on how stuff works. I'm pooling around with code and I'll finally get where I want to be, hopefully, but it's a bit tiring without the proper information.

My goal is to have a given parent forum hidden from all users, yet still accessible for all by knowing the link (that somewhat works) and making them invisible from the admincp unless you know the link (working on that)

And I could run into a problem where my sub-forum number exceeds a few hundred, as this will drive the current forumcache field crazy. Or the database. Because forums will always be created on the fly, the forumcache variable will quite often be rewritten, leading to a lockup for a few seconds once I get really MANY forums.

I am sorry for the length of this post, and I'm sorry if I posted it onto the wrong spot. Feel free to move this post wherever it should be.

Oh, and hi everyone.

Tom

PS: Within a few days I got some experience of vbulletin, so if somebody has a similar problem we may be able to help each other out.
Reply With Quote
  #2  
Old 05-28-2007, 03:27 AM
regli regli is offline
 
Join Date: Apr 2007
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Tom,

I am curious if you were able to resolve the problem?

I am also dynamically creating a large number of forums in the database and they don't show up in forumcache unless I update one of the forums in cpadmin.

What I am looking for is a way to force a code based refresh of the forumcache from outside vB.
Reply With Quote
  #3  
Old 05-28-2007, 06:05 AM
Krawall Krawall is offline
 
Join Date: Jan 2007
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Not Really.

I think it's best staying away from Vbulletin if you have many many (...) forums.

Tom
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:31 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03726 seconds
  • Memory Usage 2,173KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (3)post_thanks_box
  • (3)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (3)post_thanks_postbit_info
  • (3)postbit
  • (3)postbit_onlinestatus
  • (3)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete