Hey.
I’m creating plugin in which i want to switch some tpl
template to my custom one.
for that i’m using hook:
Hook::add('TemplateResource::getFilename', [$this, '_overridePluginTemplates']);
which is declared in register plugin function after checking if plugin is enabled, and have tpl files in templates
directory.
All works great, but when i disable plugin, look like cache is still keeping my custom tpl file even that hook is not registered any more.
Any clues how i can clear template cache after disabling plugin? alternatively maybe there is a way to exclude that tpl file from cache ?