The method CacheUtil::isExpired compares timestamps in order to validate if a timestamp is older than allowed, defined by a given cache time. Both the timestamp and cache time should be in milliseconds, but were given in seconds, therefore always yielding true as a result, breaking the caching.
The method
CacheUtil::isExpired
compares timestamps in order to validate if a timestamp is older than allowed, defined by a given cache time. Both the timestamp and cache time should be in milliseconds, but were given in seconds, therefore always yieldingtrue
as a result, breaking the caching.