vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Auto repair/optimize Database/Tables (cronejob) (https://vborg.vbsupport.ru/showthread.php?t=251623)

Kraxell 10-04-2010 01:23 PM

Auto repair/optimize Database/Tables (cronejob)
 
Hello :)

is it possible to create a cronjob, which repair and optimize the database/tables everey x days?

Sorry for my bad english, iam german ^^

Hope anyone can help me :)

Best regards

Kraxell 10-10-2010 06:55 PM

*puhs*
No1 have an idea?

JamesC70 10-10-2010 09:10 PM

You have the unzipped files for your forum on your computer, right?

In the AdminCP folder, check the code for repair.php. Copy out the code for the "?do=dorepair" section to a new script (maybe call it cronrepair.php) then adjust to your liking.

Scheduling vB's cronjob to run this script would be done in AdminCP -> Scheduled Tasks.

Kraxell 10-11-2010 10:08 AM

Is this from line 125 to 135? (// ######################### Start do repair #####################)

Iam not the greatest coder, so i dont know exatly which lines are for this feature :)

Lynne 10-11-2010 02:16 PM

It is not a good idea to repair your tables just for the sake of it. You should only have to repair them if their are problems.

Kraxell 10-11-2010 04:07 PM

Hello Lynne,

some peoples mean, that is better when i repair/optimize everey week. isnt it?

Lynne 10-11-2010 07:52 PM

No. You should only repair/optimize your tables if needed. They will take care of themselves. If your database *needs* to be repaired often, then there is something wrong and you should be talking to your host.


All times are GMT. The time now is 11:17 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.00956 seconds
  • Memory Usage 1,714KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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