[Rt-commit] rt branch, 4.2/clear-ocfv-cache-on-exit, created. rt-4.2.14-34-g6304a11c9
? sunnavy
sunnavy at bestpractical.com
Thu Mar 15 16:07:22 EDT 2018
The branch, 4.2/clear-ocfv-cache-on-exit has been created
at 6304a11c92776f03fb4d0caeca86b4765b045434 (commit)
- Log -----------------------------------------------------------------
commit 6304a11c92776f03fb4d0caeca86b4765b045434
Author: sunnavy <sunnavy at bestpractical.com>
Date: Fri Mar 16 03:36:02 2018 +0800
Run ClearOCFVCache on exit.
Entries in OCFVCache contain RT::CustomField objects, which have related
RT::Ticket objects as ContextObject. To safely run
RT::Ticket::ApplyTransactionBatch before global destruction, we need to
remove RT::Ticket objects from global cache variable.
diff --git a/lib/RT/ObjectCustomFieldValues.pm b/lib/RT/ObjectCustomFieldValues.pm
index ac3df168f..20b61fc7a 100644
--- a/lib/RT/ObjectCustomFieldValues.pm
+++ b/lib/RT/ObjectCustomFieldValues.pm
@@ -233,4 +233,6 @@ sub _DoCount {
RT::Base->_ImportOverlays();
+END { ClearOCFVCache(); }
+
1;
-----------------------------------------------------------------------
More information about the rt-commit
mailing list