Delete outdated files

Add a function which checks the cachefiles for there date and delete it,
when they are outdated (check config-array at the beginnig)