• 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

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.

Jon W

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


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.