Page Caching

Ok,

I have searched the list and I am probably missing it, but how can I prevent
a page from caching in RT? Or, is this an Apache/Perl deal.

I have a custom My Day page that simply prints out some metrics. However,
when I change the page, it does not refresh the data. Yes, I can restart
Apache and clear the cache, but this is not going to work moving forward.

How can I force this page to load every time to prevent stale data?

Joel Hartshorn
Internet Engineer/New Media
The Seattle Times Company
206 464 2323
nwsource.com | seattletimes.com

smime.p7s (3.28 KB)

I believe it is an all-or-nothing deal for RT. Since I need some caching on
my server to handle load, I run metrics every hour and delete the cached
page in the script that runs them.On 8/21/09 12:30 PM, “Joel Hartshorn” jhartshorn@seattletimes.com wrote:

Ok,

I have searched the list and I am probably missing it, but how can I prevent a
page from caching in RT? Or, is this an Apache/Perl deal.

I have a custom My Day page that simply prints out some metrics. However,
when I change the page, it does not refresh the data. Yes, I can restart
Apache and clear the cache, but this is not going to work moving forward.

How can I force this page to load every time to prevent stale data?

Joel Hartshorn
Internet Engineer/New Media
The Seattle Times Company
206 464 2323
nwsource.com | seattletimes.com


List info: http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-devel


Drew Barnes
Applications Analyst
Network Resources Dept.
Raymond Walters College

Ok,

I have searched the list and I am probably missing it, but how can I prevent
a page from caching in RT? Or, is this an Apache/Perl deal.

You can disable Mason cache in RT_SiteConfig.pm:

Set($DevelMode, 1);

then any change in local/html, share/html will happens without apache
restart.

lib changes still require apache restart.

be carefull, this setting will slow down your RT …