Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2683051
D25446.1734679268.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
960 B
Referenced Files
None
Subscribers
None
D25446.1734679268.diff
View Options
diff --git a/src/moduleutils/PhutilLibraryMapBuilder.php b/src/moduleutils/PhutilLibraryMapBuilder.php
--- a/src/moduleutils/PhutilLibraryMapBuilder.php
+++ b/src/moduleutils/PhutilLibraryMapBuilder.php
@@ -469,10 +469,12 @@
$this->fileSymbolMap = $symbol_map;
- // We're done building the cache, so write it out immediately. Note that
- // we've only retained entries for files we found, so this implicitly cleans
- // out old cache entries.
- $this->writeSymbolCache($symbol_map, $source_map);
+ if ($futures) {
+ // We're done building/updating the cache, so write it out immediately.
+ // Note that we've only retained entries for files we found, so this
+ // implicitly cleans out old cache entries.
+ $this->writeSymbolCache($symbol_map, $source_map);
+ }
// Our map is up to date, so either show it on stdout or write it to disk.
$this->librarySymbolMap = $this->buildLibraryMap($symbol_map);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Dec 20, 07:21 (24 m, 19 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1016355
Default Alt Text
D25446.1734679268.diff (960 B)
Attached To
Mode
D25446: only update cache file if something changed
Attached
Detach File
Event Timeline
Log In to Comment