the API does not clear the cache because this line assumes if the auto-clear routines are disabled then the cache should not be cleared.
The easiest way to fix this would be to update the calls in the API so that they pass true to signify that the routine was being called manually, which overrides the check if the auto-clear routines are disabled.
If you disable the auto-clear routines like this:
and then call the API like this:
the API does not clear the cache because this line assumes if the auto-clear routines are disabled then the cache should not be cleared.
The easiest way to fix this would be to update the calls in the API so that they pass
true
to signify that the routine was being called manually, which overrides the check if the auto-clear routines are disabled.