]> git.lyx.org Git - features.git/blobdiff - src/Buffer.cpp
Clear bibfile cache when set of bibliography files change
[features.git] / src / Buffer.cpp
index 64e4e0fb042f825c3413f46cd09b7c52c70c557c..2809fdf8b7b45c400d5daf6c3335e03227dd1a6f 100644 (file)
@@ -2492,6 +2492,12 @@ void Buffer::checkIfBibInfoCacheIsValid() const
 }
 
 
+void Buffer::clearBibFileCache() const
+{
+       bibfileCache.clear();
+}
+
+
 void Buffer::reloadBibInfoCache(bool const force) const
 {
        // use the master's cache
@@ -2511,7 +2517,7 @@ void Buffer::reloadBibInfoCache(bool const force) const
        // FIXME Is this sufficient? Or should we also force that
        // in some other cases? If so, then it is easy enough to
        // add the following line in some other places.
-       bibfileCache.clear();
+       clearBibFileCache();
        d->bibinfo_.clear();
        FileNameList checkedFiles;
        collectBibKeys(checkedFiles);