Fix bug DNN-5304: remove the cache time check.