Page MenuHomePhabricator

D18657.diff
No OneTemporary

D18657.diff

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

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)

Event Timeline