vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   "Panic Button" needed to turn forum off! (https://vborg.vbsupport.ru/showthread.php?t=92867)

RedWingFan 07-25-2005 05:56 PM

"Panic Button" needed to turn forum off!
 
I could probably write this mod myself, but I'm wondering what is involved to create a PHP script that my moderators could use to turn the forum on and off. The problem is that when we're under heavy load, it can take about five minutes to load a page. Log in, acknowledgement, main AdminCP page, vB options, etc. all take awhile to load, too long when you want to turn the forum off for a few minutes so the database can relieve itself.

All I need to know is, which database entries do I need to hit to turn the forum off? In the "setting" table, I tried turning the "bbactive" value to zero (0), but it did not appear to work. I'm wondering if there is another database entry that is being modified that I'm missing, or maybe I just need to try changing "bbactive" again.

poolking 07-25-2005 09:22 PM

Quote:

Originally Posted by RedWingFan
I could probably write this mod myself, but I'm wondering what is involved to create a PHP script that my moderators could use to turn the forum on and off. The problem is that when we're under heavy load, it can take about five minutes to load a page. Log in, acknowledgement, main AdminCP page, vB options, etc. all take awhile to load, too long when you want to turn the forum off for a few minutes so the database can relieve itself.

All I need to know is, which database entries do I need to hit to turn the forum off? In the "setting" table, I tried turning the "bbactive" value to zero (0), but it did not appear to work. I'm wondering if there is another database entry that is being modified that I'm missing, or maybe I just need to try changing "bbactive" again.

I thought there was already an option that will prevent any more users accessing the forum under heavy load?

Paul M 07-25-2005 09:31 PM

There is, in vb options (Server Settings and Optimization Options) - it's OS dependant though.

Marco van Herwaarden 07-26-2005 03:45 AM

To turn the board of with a query you can run the following SQL's:
[sql]UPDATE datastore SET data=REPLACE(data,'"bbactive";s:1:"1"','"bbactive" ;s:1:"0"') WHERE title='options';

UPDATE setting SET value=0 WHERE varname='bbactive';
[/sql]
But like mentioned before vB already have means of controlling this.

RedWingFan 07-26-2005 11:47 PM

Quote:

Originally Posted by poolking
I thought there was already an option that will prevent any more users accessing the forum under heavy load?

Only server load, and that doesn't even work properly either. (I am about to open a ticket with vB support due to this problem.) Thing is, MySQL can get bogged down and the server load can still be under 2.00 on our server, over an extended period.

Quote:

Originally Posted by MarcoH64
To turn the board of with a query you can run the following SQL's:

That's what I needed. Thanks! Had one of the queries but not the "datastore" table query.

aussiev8 07-27-2005 04:19 AM

upgrade your serve r:)


All times are GMT. The time now is 07:20 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.01153 seconds
  • Memory Usage 1,723KB
  • 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
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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