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

XF 1.2 Why installing an addon rebuilds things that were not changed by the addon?

Discussion in 'XenForo Questions and Support' started by rellect, Feb 22, 2014.

  1. rellect

    rellect Well-Known Member

    I did a quick test, I created an empty addon and tried to install it.
    In the install process it rebuild phrases, templates, admin templates, etc...

    The addon does not create new phrases, nor templates.
    So why it rebuilds this information?
     
    RoldanLT likes this.
  2. Liam W

    Liam W Well-Known Member

    Because during the addon install process, the code to rebuild everything is called :rolleyes:

    Ideally, it should check for what was changed/added and only rebuild that...

    Liam
     
  3. Mike

    Mike XenForo Developer Staff Member

    What if you inserted or changed things via the install code? What if you were upgrading and had something before but didn't have it now (or vice versa). It's not trivial and this is much safer. (On an optimized forum, the rebuild process should really only take 60-90 seconds at a maximum; if it takes longer, you'll want to look at your server and cut down on the number of languages/styles if possible.)
     
    Amaury likes this.
  4. rellect

    rellect Well-Known Member

    In that case I probably could trigger the necessary rebuild in the install code as well.
    It's not a big deal, just found it annoying while testing few addons and needed to re-install few times.

    Is it worth to open a suggestion or this is not something that is going to change?
     
    xf_phantom likes this.
  5. Rob

    Rob Well-Known Member

    I don't see this as an issue?
    The 'wait' can be annoying at times but it's a small price to pay for data integrity.
     
    Fuhrmann likes this.
  6. 0ptima

    0ptima Well-Known Member

    Is there a way to prevent the re-build from happening? This could be useful if you have multiple addons to install and would like to do the re-build only at the end.
     
  7. Rob

    Rob Well-Known Member

    0ptima likes this.
  8. Brogan

    Brogan XenForo Moderator Staff Member

    Immediately click back in your browser.
     
    0ptima and Rob like this.
  9. 0ptima

    0ptima Well-Known Member

    Thanks guys.
     

Share This Page