提交 287539fc 编写于 作者: Y Yuji Yaginuma 提交者: yuuji.yaginuma

Merge pull request #36397 from y-yagi/only_clear_cache_when_view_paths_are_specified

Only clear cache when view paths are specified
上级 c5f11438
...@@ -22,6 +22,8 @@ def initialize(watcher:) ...@@ -22,6 +22,8 @@ def initialize(watcher:)
def clear_cache_if_necessary def clear_cache_if_necessary
@mutex.synchronize do @mutex.synchronize do
watched_dirs = dirs_to_watch watched_dirs = dirs_to_watch
return if watched_dirs.empty?
if watched_dirs != @watched_dirs if watched_dirs != @watched_dirs
@watched_dirs = watched_dirs @watched_dirs = watched_dirs
@watcher = @watcher_class.new([], watched_dirs) do @watcher = @watcher_class.new([], watched_dirs) do
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册