fixing caching path for api