Callback for callApi() and callDb() functions
Add caching value
Only call API if configured caching value is exceeded
Add some comments