[Rt-commit] [svn] r1879 - in rt/branches/3.3-TESTING: . bin etc

jesse at pallas.eruditorum.org jesse at pallas.eruditorum.org
Sat Nov 13 00:11:32 EST 2004


Author: jesse
Date: Sat Nov 13 00:11:31 2004
New Revision: 1879

Modified:
   rt/branches/3.3-TESTING/   (props changed)
   rt/branches/3.3-TESTING/bin/standalone_httpd.in
   rt/branches/3.3-TESTING/bin/webmux.pl.in
   rt/branches/3.3-TESTING/etc/RT_Config.pm.in
Log:
 r9219 at tinbook:  jesse | 2004-11-13T00:28:50.936425Z
 Made the automatic cache flushing configurable.
 


Modified: rt/branches/3.3-TESTING/bin/standalone_httpd.in
==============================================================================
--- rt/branches/3.3-TESTING/bin/standalone_httpd.in	(original)
+++ rt/branches/3.3-TESTING/bin/standalone_httpd.in	Sat Nov 13 00:11:31 2004
@@ -155,9 +155,13 @@
                 $RT::Logger->crit( "Transaction not committed. Usually indicates a software fault. Data loss may have occurred");
             }
 
-            DBIx::SearchBuilder::Record::Cachable->FlushCache if UNIVERSAL::can(
-                'DBIx::SearchBuilder::Record::Cachable' => 'FlushCache'
-            );
+            DBIx::SearchBuilder::Record::Cachable->FlushCache
+              if (
+                $WebFlushDbCacheEveryRequest
+                and UNIVERSAL::can(
+                    'DBIx::SearchBuilder::Record::Cachable' => 'FlushCache'
+                )
+              );
         }
 
     }

Modified: rt/branches/3.3-TESTING/bin/webmux.pl.in
==============================================================================
--- rt/branches/3.3-TESTING/bin/webmux.pl.in	(original)
+++ rt/branches/3.3-TESTING/bin/webmux.pl.in	Sat Nov 13 00:11:31 2004
@@ -134,9 +134,13 @@
         );
     }
 
-    DBIx::SearchBuilder::Record::Cachable->FlushCache if UNIVERSAL::can(
-        'DBIx::SearchBuilder::Record::Cachable' => 'FlushCache'
-    );
+    DBIx::SearchBuilder::Record::Cachable->FlushCache
+      if (
+        $WebFlushDbCacheEveryRequest
+        and UNIVERSAL::can(
+            'DBIx::SearchBuilder::Record::Cachable' => 'FlushCache'
+        )
+      );
 
     return $status;
 }

Modified: rt/branches/3.3-TESTING/etc/RT_Config.pm.in
==============================================================================
--- rt/branches/3.3-TESTING/etc/RT_Config.pm.in	(original)
+++ rt/branches/3.3-TESTING/etc/RT_Config.pm.in	Sat Nov 13 00:11:31 2004
@@ -348,6 +348,16 @@
 
 # Set($WebSessionClass , 'Apache::Session::File');
 
+# By default, RT clears its database cache after every page view.
+# This ensures that you've always got the most current information 
+# when working in a multi-process (mod_perl or FastCGI) Environment
+# Setting $WebFlushDbCacheEveryRequest to '0' will turn this off,
+# which will speed RT up a bit, at the expense of a tiny bit of data 
+# accuracy
+
+Set($WebFlushDbCacheEveryRequest, '1');
+
+
 # $MaxInlineBody is the maximum attachment size that we want to see
 # inline when viewing a transaction. 13456 is a random sane-sounding
 # default.


More information about the Rt-commit mailing list