[BUGFIX] Ensure writing of cached TSconfig on cache clear

Fixes: #13