changeset 1226:9dae588b8d5e

remove cached entries on all changes
author nadvornik
date Fri, 26 Dec 2008 18:54:07 +0000
parents 3e5f52382573
children 2df7be0cd20b
files src/filecache.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/filecache.c	Fri Dec 26 17:38:52 2008 +0000
+++ b/src/filecache.c	Fri Dec 26 18:54:07 2008 +0000
@@ -180,7 +180,7 @@
 {
 	FileCacheData *fc = data;
 
-	if (type == NOTIFY_TYPE_REREAD)
+	if (type != NOTIFY_TYPE_INTERNAL) /* invalidate the entry on each file change */
 		{
 		file_cache_remove_fd(fc, fd);
 		}