Add-on store: fix bug with external installs (#15140)
Summary of the issue:
The add-on store cache for an installed addon should be deleted in the following scenarios:
when removing an add-on
when installing an external version of an add-on
This was not reflected correctly in the code
Additionally, external add-ons were incorrectly grouped as stable add-ons in some cases
Description of user facing changes
Fix bug where add-on store cache would be incorrectly deleted or incorrectly retained in various scenarios.
Description of development approach
Delete add-on cache file when removing or updating an add-on from an external source.