Fixing errors like

    AttributeError: 'CacheLog' object has no attribute 'time'

by first checking whether 'log' object has 'time' attribute.