summaryrefslogtreecommitdiff
path: root/apps/tagcache.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/tagcache.c')
-rw-r--r--apps/tagcache.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/tagcache.c b/apps/tagcache.c
index 90f7e01a2f..9463d7c865 100644
--- a/apps/tagcache.c
+++ b/apps/tagcache.c
@@ -800,7 +800,8 @@ static long find_entry_ram(const char *filename)
800 struct dircache_fileref dcfref; 800 struct dircache_fileref dcfref;
801 801
802 /* Check if tagcache is loaded into ram. */ 802 /* Check if tagcache is loaded into ram. */
803 if (!tc_stat.ramcache) 803 if (!tc_stat.ramcache
804 || global_settings.tagcache_ram != TAGCACHE_RAM_ON)
804 return -1; 805 return -1;
805 806
806 if (dircache_search(DCS_CACHED_PATH | DCS_UPDATE_FILEREF, &dcfref, 807 if (dircache_search(DCS_CACHED_PATH | DCS_UPDATE_FILEREF, &dcfref,
@@ -5247,7 +5248,8 @@ static void tagcache_thread(void)
5247 if (!tc_stat.ramcache && global_settings.tagcache_ram) 5248 if (!tc_stat.ramcache && global_settings.tagcache_ram)
5248 { 5249 {
5249 load_ramcache(); 5250 load_ramcache();
5250 check_file_refs(global_settings.tagcache_autoupdate); 5251 if (global_settings.tagcache_ram == TAGCACHE_RAM_ON)
5252 check_file_refs(global_settings.tagcache_autoupdate);
5251 if (tc_stat.ramcache && global_settings.tagcache_autoupdate) 5253 if (tc_stat.ramcache && global_settings.tagcache_autoupdate)
5252 tagcache_build(); 5254 tagcache_build();
5253 } 5255 }