Skip to content

Commit a9c8882

Browse files
committed
cached_functions: forward force_refresh through all 39 *_cached wrappers
vfbquery/__init__.py:62 calls patch_vfbquery_with_caching() at import time, which monkey-patches vfbquery.get_instances (and 38 others) to the cached_functions.*_cached variants. Each *_cached function takes force_refresh as a parameter but then calls _original_get_X(...) with the other kwargs only — silently dropping force_refresh on the floor. This is why v1.12.9 / v1.12.10 / v1.12.11 saw 'Cache hit for instances(FBbt_00007484_dataframe_False)' in the server logs even when ha_api was correctly passing force_refresh=True down to fn(): the "function" that received it was get_instances_cached, which discarded the kwarg before reaching the underlying @with_solr_cache wrapper. Bulk-fix: add force_refresh=force_refresh to every 'return _original_get_*(...)' call inside a *_cached function. All 39 wrappers are uniform — a single regex pass over the file got them all (verified: 39/39 now forward the parameter).
1 parent 1c21119 commit a9c8882

1 file changed

Lines changed: 38 additions & 38 deletions

File tree

0 commit comments

Comments
 (0)