Implemented automatic cache cleaning depending on file date.

Signed-off-by: Jan Linhart <jan.linhart@easysoftware.cz>