fixed directory cache time check