[Rt-commit] rt branch, 3.8-trunk, updated. rt-3.8.9-12-g6a57e9d
Kevin Falcone
falcone at bestpractical.com
Tue Feb 22 12:40:28 EST 2011
The branch, 3.8-trunk has been updated
via 6a57e9d6ce74e1d9ae991ca4399b2c73a6845d8b (commit)
from f36d8f5b9fb5db6e5ff25d4bb848ab9fe3b36b73 (commit)
Summary of changes:
lib/RT/Interface/Web/Handler.pm | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
- Log -----------------------------------------------------------------
commit 6a57e9d6ce74e1d9ae991ca4399b2c73a6845d8b
Author: Shawn M Moore <sartak at bestpractical.com>
Date: Tue Sep 14 21:22:43 2010 -0400
Clean up the RT::System attribute cache every request
(cherry picked from commit 3b4e4017ce519df4df3fd94c249f08c47941e44d)
diff --git a/lib/RT/Interface/Web/Handler.pm b/lib/RT/Interface/Web/Handler.pm
index 772fab0..4bb6484 100644
--- a/lib/RT/Interface/Web/Handler.pm
+++ b/lib/RT/Interface/Web/Handler.pm
@@ -260,6 +260,11 @@ sub CleanupRequest {
%RT::Ticket::MERGE_CACHE = ( effective => {}, merged => {} );
+ # RT::System persists between requests, so its attributes cache has to be
+ # cleared manually. Without this, for example, subject tags across multiple
+ # processes will remain cached incorrectly
+ delete $RT::System->{attributes};
+
# Explicitly remove any tmpfiles that GPG opened, and close their
# filehandles.
File::Temp::cleanup;
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list