[Rt-devel] Re: [rt-users] RT 3.3.11 - Second beta
Autrijus Tang
autrijus at autrijus.org
Sun Nov 14 01:07:15 EST 2004
On Sat, Nov 13, 2004 at 09:07:24PM -0500, Jesse Vincent wrote:
> Web UI:
> * Switched to using mason's "static_source" directive, which stops mason from
> trying to guess about which pages need to be reload from disk. (Now you
> need to restart the webserver to see changes)
Actually, as it was implemented in that version, one needs to purge
var/mason_data/obj/* to see changes.
I have just committed the patch below as r1890; with this change,
it now works as advertised in the changelog above.
Thanks,
/Autrijus/
----------------------------------------------------------------------
r4070 (orig r1890): autrijus | 2004-11-14 14:01:21 +0800
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.
----------------------------------------------------------------------
--- rt/3.3-TESTING/bin/webmux.pl.in (revision 4054)
+++ rt/3.3-TESTING/bin/webmux.pl.in (revision 4055)
@@ -98,6 +98,14 @@ use Carp;
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) = @_;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.bestpractical.com/pipermail/rt-devel/attachments/20041114/189b8cb4/attachment.pgp
More information about the Rt-devel
mailing list