bug in refreshCaches adding an h to the cache files