2021-05-17, 08:02
Hi, I made an addon; but I would like to "hook" some function when the plugin is enabled. Is that possible, and how ?
For the story, I do cache some datas with my addon. But from one version to another, I might change how the data is stored.
And if so, when I open the addon, it gets the cache and the addon crashes because the old data is not well formatted.
I would like to systematically delete the cache when the plugin is enabled (or disabled > updated > enabled again).
Thanks !
For the story, I do cache some datas with my addon. But from one version to another, I might change how the data is stored.
And if so, when I open the addon, it gets the cache and the addon crashes because the old data is not well formatted.
I would like to systematically delete the cache when the plugin is enabled (or disabled > updated > enabled again).
Thanks !