Nathan Explosion Posted November 24, 2023 Share Posted November 24, 2023 (edited) Just want to double check something, and happy to be wrong on this... Is there a reason why uninstalling an Invision application doesn't remove that specific application's javascript from the core_javascript table of the database? It's easy to check: Install a new instance of the full suite Check core_javascript and there's all the javascript files for all the applications. Uninstall a random application (say, Blog) Check core_javascript and there's all the javascript files still there for that specific application. Reason I am asking is that I've just spotted that an old test instance of mine where I had uninstalled all my own applications but left behind the Invision apps, all the JS from my own apps were still in the table. Always been under the impression that removal of application JS files from core_javascript was done at uninstallation time by the framework (it does for plugins), but it appears it is not. Taking a look at the delete() function in \IPS\Plugin, there is a clear removal of the JS from the table: $hasJs = \IPS\Db::i()->delete( 'core_javascript', array( 'javascript_plugin=?', $this->id ) ); But amongst all the tidy up in the equivalent function in \IPS\Application, there is no clearing of the application's JS from the table. If someone reinstalls an application at a later point, there is a deletion of existing done by importXml in the \IPS\Output\Javascript, prior to importing the new. Just double-checked to see if maybe it was implemented via the Uninstall extension, and nope. Edited November 26, 2023 by Nathan Explosion Link to comment Share on other sites More sharing options...
Nathan Explosion Posted December 7, 2023 Author Share Posted December 7, 2023 teraßyte and Afrodude 2 Link to comment Share on other sites More sharing options...
Recommended Posts