Fix outdated cache after saving tracking codes

Clear cache when tracking code has been set. Prevents unwanted situations where tracking code is not used because of outdated cache.