Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15284938
D18657.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
554 B
Referenced Files
None
Subscribers
None
D18657.diff
View Options
diff --git a/src/applications/cache/PhabricatorCaches.php b/src/applications/cache/PhabricatorCaches.php
--- a/src/applications/cache/PhabricatorCaches.php
+++ b/src/applications/cache/PhabricatorCaches.php
@@ -51,6 +51,12 @@
*/
public static function destroyRequestCache() {
self::$requestCache = null;
+
+ // See T12997. Force the GC to run when the request cache is destroyed to
+ // clean up any cycles which may still be hanging around.
+ if (function_exists('gc_collect_cycles')) {
+ gc_collect_cycles();
+ }
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Mar 5, 10:59 AM (2 w, 5 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7225250
Default Alt Text
D18657.diff (554 B)
Attached To
Mode
D18657: When we purge the request cache, also force PHP to collect cycles
Attached
Detach File
Event Timeline
Log In to Comment