fix include_cache implementation