store cache last modification time if enabled, fixes #224

Once this is reviewed and there are no objections I will look into plugins/cache and try adding cache sync policies based on cache mtime or items count.