Removes cached API responses so that subsequent calls hit the API again.
By default clears everything; use pattern to selectively clear entries
for specific endpoints.
Usage
tce_cache_clear(pattern = NULL)
Arguments
- pattern
Optional regex pattern to clear only matching keys.
If NULL (default), clears the entire cache. For example,
"Contratos" clears all cached contract queries.
Value
Invisibly returns the number of entries cleared.
Examples
tce_cache_clear() # clear everything
#> ℹ No cached entries to clear.
tce_cache_clear("Contratos") # clear contract queries only
#> ℹ No cached entries to clear.