Opposite Of Registercache


As part of my addon, I am using the Registry::registerCache() call to create a dedicated area in session storage to keep my theme related data.

Registry::registerCache('bfa_theme', []);

I then make calls which set subkeys on this key, e.g...

Registry::set('bfa_theme.support_links', [data => 'some data']);

My theme is heavily dependent on nginx proxy cache, so I have written some functions to manage the nginx cache via UI in the backend, one of which will fully purge 'bfa_theme' from the session storage.

But I am unsure how to do this.. The following has no effect:


Thanks in advance..