Revamped CacheTracker, added tests

Changed “logRequest” to “trackRequest”, and removed the namespace
trimming from the key as it’s no longer needed. Plus tests!