1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Database backup -> close/open forum

Discussion in 'XenForo Development Discussions' started by hcmagix, Nov 13, 2010.

  1. hcmagix

    hcmagix Active Member

    For vBulletin I has write a full automatically backup script. Same I would write for xF.

    In the old script I close the Forum with this line
    after the backup done I open the vBulletin with this line
    is it possible to do the same with xF ?
    Can somebody tell me the code to close/open the xF Forum via mysql?

    If yes the backups script coming soon.
  2. Shadab

    Shadab Well-Known Member

    When you change an option,... apart from updating the entry in xf_option table, a whole bunch of other caches are rebuilt: the option cache, last modified date for all styles, style cache, and last modified date for admin templates.

    The option cache (data_key = 'options') in xf_data_registry is important, since xenforo looks there first. I'm not sure about the other settings and caches... you might skip updating those altogether, without breaking your forum.
  3. hcmagix

    hcmagix Active Member

    hm I have no change to close the forum via mysql statement?
  4. Scott

    Scott Active Member

    All the tables are InnoDB so if you start a transaction you get it at that point and there is no half done stuff in the tables.

    You shouldn't need to close the forum as long as you use

    --single-transaction in mysqldump
    Floris likes this.

Share This Page