remove cached entries on all changes
authorVladimir Nadvornik <nadvornik@suse.cz>
Fri, 26 Dec 2008 18:54:07 +0000 (18:54 +0000)
committerVladimir Nadvornik <nadvornik@suse.cz>
Fri, 26 Dec 2008 18:54:07 +0000 (18:54 +0000)
src/filecache.c

index becca89..df522e4 100644 (file)
@@ -180,7 +180,7 @@ static void file_cache_notify_cb(FileData *fd, NotifyType type, gpointer data)
 {
        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);
                }