Previously, the SubjectController handled initializing and holding onto the cache backend instance. This is not really a controller job.
f973658 reimplements this behavior in a centralized Service singleton, which maintains the cache on an application wide basis. The idea here is to centralize this responsibility, and guarantee that there is only one canonical cache backend at any given time.
644555a moves the existing controller to use the singleton, and cleans up the error handling.
Previously, the
SubjectController
handled initializing and holding onto the cache backend instance. This is not really a controller job.f973658 reimplements this behavior in a centralized
Service
singleton, which maintains the cache on an application wide basis. The idea here is to centralize this responsibility, and guarantee that there is only one canonical cache backend at any given time.644555a moves the existing controller to use the singleton, and cleans up the error handling.