[Rt-commit] r2228 - in rt/branches/3.4-RELEASE: . bin

jesse at bestpractical.com jesse at bestpractical.com
Sun Feb 13 22:39:45 EST 2005


Author: jesse
Date: Sun Feb 13 22:39:44 2005
New Revision: 2228

Modified:
   rt/branches/3.4-RELEASE/   (props changed)
   rt/branches/3.4-RELEASE/bin/webmux.pl.in
Log:
 r4692 at hualien:  jesse | 2005-02-14T03:38:09.047131Z
 Disabled automatic clearing of mason component cache on start with FastCGI. It doesn't work properly in the multiprocess
 environment.
 


Modified: rt/branches/3.4-RELEASE/bin/webmux.pl.in
==============================================================================
--- rt/branches/3.4-RELEASE/bin/webmux.pl.in	(original)
+++ rt/branches/3.4-RELEASE/bin/webmux.pl.in	Sun Feb 13 22:39:44 2005
@@ -99,9 +99,13 @@
 use RT::Interface::Web::Handler;
 $Handler = RT::Interface::Web::Handler->new(@RT::MasonParameters);
 
-if (!$RT::DevelMode) {
+if ($ENV{'MOD_PERL'} && !$RT::DevelMode) {
     # Under static_source, we need to purge the component cache
     # each time we restart, so newer components may be reloaded.
+    #
+    # We can't do this in FastCGI or we'll blow away the component root _every_ time a new server starts
+    # which happens every few hits.
+    
     use File::Path qw( rmtree );
     use File::Glob qw( bsd_glob );
     rmtree([ bsd_glob("$RT::MasonDataDir/obj/*") ], 0, 1);


More information about the Rt-commit mailing list