Delete cache after changing theme

After changing the theme, it delete's the cache to make sure the theme reloads immediately. This fixes issue #1352