fixed a bug on the cache

It was rebuilding the cache on every request because it wasn't storing
the last updated time on the cache metadata.