Invalidate cache on user language changes (#1897)

Replaced old code to invalidate the cache with new code.