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

Won't Fix Code event listener cache is rebuilt twice during add-on install

Discussion in 'Resolved Bug Reports' started by Jon W, Jul 22, 2015.

  1. Jon W

    Jon W Well-Known Member

    The rebuildEventListenerCache method is called twice during the add-on install process.

    It is called once in the CodeEvent model, in the importEventListenersAddOnXml method, and then at the end of the installation process in the AddOn model, in the rebuildAddOnCaches method.
  2. Jon W

    Jon W Well-Known Member

    Also, the line $eventId = (string)$event['event_id']; in the importEventListenersAddOnXml method is completely redundant too.
  3. Mike

    Mike XenForo Developer Staff Member

    I don't think anything is going to change here. The relevant case is actually on add-on uninstall. The rebuildAddOnCaches method needs to call the listener rebuild there.

Share This Page