Fixed logic for cache timer in ApiAccess