Default auto-refresh interval

Hi,

I had a customer request to set the default home page refresh interval to 2
minutes for all users. I found several suggestions that essentially involved
modifying the code (e.g. by creating a local version of Elements/Login or
Elements/Refresh), but wanted to avoid code customisations if at all possible.

I found that I could make this work using mod_rewrite, without having to touch
the RT code:

RewriteEngine On
RewriteRule ^/$ /?HomeRefreshInterval=120 [L,PT,QSA]

(note that this is with RT in the root directory of a virtual host; modify the
"^/$" portion as necessary for other locations).

Posting this message for the record, to save someone else the time it took me
to figure this out.

Michael

I had a customer request to set the default home page refresh interval to 2
minutes for all users. I found several suggestions that essentially involved
modifying the code (e.g. by creating a local version of Elements/Login or
Elements/Refresh), but wanted to avoid code customisations if at all possible.

I found that I could make this work using mod_rewrite, without having to touch
the RT code:

RewriteEngine On
RewriteRule ^/$ /?HomeRefreshInterval=120 [L,PT,QSA]

(note that this is with RT in the root directory of a virtual host; modify the
"^/$" portion as necessary for other locations).

Posting this message for the record, to save someone else the time it took me
to figure this out.

I’m not sure How this is better than using the documented config variable
$HomePageRefreshInterval which is also available on a per-user basis.

-kevin

I had a customer request to set the default home page refresh interval to
2 minutes for all users. I found several suggestions that essentially
involved modifying the code (e.g. by creating a local version of
Elements/Login or Elements/Refresh), but wanted to avoid code
customisations if at all possible.

I found that I could make this work using mod_rewrite, without having to
touch the RT code:

RewriteEngine On
RewriteRule ^/$ /?HomeRefreshInterval=120 [L,PT,QSA]

(note that this is with RT in the root directory of a virtual host;
modify the “^/$” portion as necessary for other locations).

Posting this message for the record, to save someone else the time it
took me to figure this out.

I’m not sure How this is better than using the documented config variable
$HomePageRefreshInterval which is also available on a per-user basis.

Doesn’t show up in any file my (pre-packaged) version of RT 3.8.1:

grep -i HomePageRefreshInterval rpm -ql rt

nor in a search of the RT wiki.

I assume it’s a relatively new setting that isn’t yet documented?

Michael

Please obey the Reply-To, I subscribe to the list and don’t need
personal email.

I had a customer request to set the default home page refresh interval to
2 minutes for all users. I found several suggestions that essentially
involved modifying the code (e.g. by creating a local version of
Elements/Login or Elements/Refresh), but wanted to avoid code
customisations if at all possible.

I found that I could make this work using mod_rewrite, without having to
touch the RT code:

RewriteEngine On
RewriteRule ^/$ /?HomeRefreshInterval=120 [L,PT,QSA]

(note that this is with RT in the root directory of a virtual host;
modify the “^/$” portion as necessary for other locations).

Posting this message for the record, to save someone else the time it
took me to figure this out.

I’m not sure How this is better than using the documented config variable
$HomePageRefreshInterval which is also available on a per-user basis.

Doesn’t show up in any file my (pre-packaged) version of RT 3.8.1:

3.8.1 is 2.5 years old and vulnerable to multiple security issues.
Hopefully you’ve been patching.

grep -i HomePageRefreshInterval rpm -ql rt

nor in a search of the RT wiki.

I assume it’s a relatively new setting that isn’t yet documented?

It was added in 3.8.3 which is more than 1.5 years old

-kevin

Please obey the Reply-To, I subscribe to the list and don’t need
personal email.

Of course, since you ask so nicely.

Doesn’t show up in any file my (pre-packaged) version of RT 3.8.1:

3.8.1 is 2.5 years old and vulnerable to multiple security issues.
Hopefully you’ve been patching.

Didn’t realise the distro package was so old. Have updated the package to
3.8.8. In the unlikely event that anyone else wants a Mandriva RPM updated to
3.8.8, the SRPM is available at

http://www.fensystems.co.uk/~mcb30/rt-3.8.8-1fs2010.0.src.rpm

grep -i HomePageRefreshInterval rpm -ql rt

nor in a search of the RT wiki.

I assume it’s a relatively new setting that isn’t yet documented?

It was added in 3.8.3 which is more than 1.5 years old

Updated http://requesttracker.wikia.com/wiki/UserConfigurableRefreshPeriods to
reflect the fact that it is no longer necessary to hack the source code.

Michael