[Rt-commit] r9351 - rtir/branches/2.3-EXPERIMENTAL/lib/RT
ruz at bestpractical.com
ruz at bestpractical.com
Fri Oct 19 11:21:23 EDT 2007
Author: ruz
Date: Fri Oct 19 11:21:20 2007
New Revision: 9351
Modified:
rtir/branches/2.3-EXPERIMENTAL/lib/RT/IR.pm
Log:
* flush constituency cache on each request
Modified: rtir/branches/2.3-EXPERIMENTAL/lib/RT/IR.pm
==============================================================================
--- rtir/branches/2.3-EXPERIMENTAL/lib/RT/IR.pm (original)
+++ rtir/branches/2.3-EXPERIMENTAL/lib/RT/IR.pm Fri Oct 19 11:21:20 2007
@@ -351,8 +351,13 @@
}
-# if (0) {
{
+ require RT::Interface::Web::Handler;
+ # flush constituency cache on each request
+ wrap 'RT::Interface::Web::Handler::CleanupRequest', pre => sub {
+ %RT::IR::ConstituencyCache = ();
+ };
+
require RT::Record;
# flush constituency cache on update of the custom field value for a ticket
wrap 'RT::Record::_AddCustomFieldValue', pre => sub {
More information about the Rt-commit
mailing list