The team is now working on the WordPress Interactivity API. This unblocks the same UX Frontity framework enabled but directly in WordPress Core, fully compatible with the new Site Editor.
I would like it, if there would be a scheduled clean-up setting, to purge the Head Tags cache (e.g. weekly) automatically.
Examples
Our site is a news site, with 2000 news at the moment. I’m really happy, that the Head Tags are cached, but I don’t want old news to be still cached, as my DB will grow too large.
Possible solution
SantosGuillamot2
Thanks for suggesting this @koli14 I think it may make a lot of sense. @David As you were the one more involved with this plugin, do you have any feedback here?
David3
Yup, let me give some feedback.
We are using WordPress transients to store the cached head tags. They are configured to last up to 30 days, but transients are only removed from the DB when they are requested again after expired so I completely understand your problem, @koli14.
A possible solution would be to implement our own system to remove automatically all expired transients created by the Head Tags plugin. Also, we could add an option in the admin panel to change the default expiration time (currently is 30 days).
@koli14, in the meantime, there are some plugins that remove expired transients automatically (like Delete Expired Transients) but, yeah, it totally makes sense to add an auto-clean cache feature for the REST API - Head Tags plugin so it doesn’t depend on third-party plugins.