[Rt-commit] r2425 - in rt/branches/PLATANO-EXPERIMENTAL-CSS: . bin
jesse at bestpractical.com
jesse at bestpractical.com
Mon Mar 14 02:59:36 EST 2005
Author: jesse
Date: Mon Mar 14 02:59:36 2005
New Revision: 2425
Modified:
rt/branches/PLATANO-EXPERIMENTAL-CSS/ (props changed)
rt/branches/PLATANO-EXPERIMENTAL-CSS/bin/webmux.pl.in
Log:
r8585 at hualien: jesse | 2005-03-14 02:41:55 -0500
r8472 at hualien: jesse | 2005-03-14 02:25:58 -0500
r4692 at hualien: jesse | 2005-02-13 22:38:09 -0500
Disabled automatic clearing of mason component cache on start with FastCGI. It doesn't work properly in the multiprocess
environment.
Modified: rt/branches/PLATANO-EXPERIMENTAL-CSS/bin/webmux.pl.in
==============================================================================
--- rt/branches/PLATANO-EXPERIMENTAL-CSS/bin/webmux.pl.in (original)
+++ rt/branches/PLATANO-EXPERIMENTAL-CSS/bin/webmux.pl.in Mon Mar 14 02:59:36 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