Improve connection to cache and elasticsearch
- Adds some parameters to the cache connection to make the connection faster and do not wait for reply on save among others.
- Creates fail proof get and set cache functions to avoid crashing the server on failures such as connection reset, item to big for cache, etc...
- Increases the timeout time for elasticsearch.