cache_limit: don't return the current value on error