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.
 
Also, the line $eventId = (string)$event['event_id']; in the importEventListenersAddOnXml method is completely redundant too.
 
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.
 
Top Bottom