Reworked http and doctrine caching.