if json cache file empty then also re-generate it