[Rt-commit] [svn] r1890 - in rt/branches/3.3-TESTING: . bin
autrijus at pallas.eruditorum.org
autrijus at pallas.eruditorum.org
Sun Nov 14 01:01:22 EST 2004
Author: autrijus
Date: Sun Nov 14 01:01:21 2004
New Revision: 1890
Modified:
rt/branches/3.3-TESTING/ (props changed)
rt/branches/3.3-TESTING/bin/webmux.pl.in
Log:
r4055 at not: autrijus | 2004-11-14T05:54:37.364789Z
* Under static_source, we need to purge the component cache
each time we restart, so newer components may be reloaded.
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 Sun Nov 14 01:01:21 2004
@@ -98,6 +98,14 @@
use RT::Interface::Web::Handler;
$Handler = RT::Interface::Web::Handler->new(@RT::MasonParameters);
+if (!$RT::DevelMode) {
+ # Under static_source, we need to purge the component cache
+ # each time we restart, so newer components may be reloaded.
+ use File::Path qw( rmtree );
+ use File::Glob qw( bsd_glob );
+ rmtree([ bsd_glob("$RT::MasonDataDir/obj/*") ], 0, 1);
+}
+
sub handler {
($r) = @_;
More information about the Rt-commit
mailing list