[rt-users] System-wide Default Refresh Rate

Mathew theillien at yahoo.com
Wed Jul 18 11:48:40 EDT 2007


Ahhh...right.  Didn't do that.  I'll try it later tonight when I get to
work.

Keep up with my goings on at http://theillien.blogspot.com

Drew Barnes wrote:
> Don't forget to add variables to RT_SiteConfig.pm.
> Set($HomeRefreshPeriod, "300");
> Set($TicketsRefreshPeriod, "300");
> 
> 
> Mathew Snyder wrote:
>> Ian Norton wrote:
>>   
>>> Hi Mathew,
>>>
>>>     
>>>> Sadly, this won't work for the 3.6 branch autohandler.  :( 
>>>> HomeRefreshPeriod
>>>> isn't found anywhere in it.  Heck, I can't seem to find it anywhere
>>>> using grep.
>>>>  I know it's there somewhere though.
>>>>       
>>> You did apply the patch, didn't you?  By the looks of it, the patch
>>> fails against the 3.6.4 source I just untarred to check it against.
>>> Here's an updated version:
>>>
>>> <snip>
>>> --- html/autohandler    2007-04-24 18:21:42.000000000 +0100
>>> +++ html/autohandler    2007-07-15 15:05:40.000000000 +0100
>>> @@ -196,6 +196,8 @@
>>>                         if ( defined $new_user_info->{$attribute} );
>>>                 }
>>>                 $session{'CurrentUser'}->Load($user);
>>> +                $session{'home_refresh_interval'} =
>>> $RT::HomeRefreshPeriod;
>>> +                $session{'tickets_refresh_interval'} =
>>> $RT::TicketsRefreshPeriod;
>>>             }
>>>             else {
>>>
>>> @@ -243,6 +245,8 @@
>>> if ( !$session{'CurrentUser'} && defined $user && defined $pass ) {
>>>     $session{'CurrentUser'} = RT::CurrentUser->new();
>>>     $session{'CurrentUser'}->Load($user);
>>> +    $session{'home_refresh_interval'} = $RT::HomeRefreshPeriod;
>>> +    $session{'tickets_refresh_interval'} = $RT::TicketsRefreshPeriod;
>>>
>>>     unless ( $session{'CurrentUser'}->id
>>>         && $session{'CurrentUser'}->IsPassword($pass) )
>>> </snip>
>>>
>>> The HomeRefreshPeriod variable won't appear in the source until the
>>> patch is applied.
>>>
>>> Regards, Ian.
>>>
>>>     
>> I added the lines listed, logged out and then logged in again to make sure the
>> session was reset.  Still no system-wide change.
>>
>> Mathew
>> Keep up with me and what I'm up to: http://theillien.blogspot.com
>> _______________________________________________
>> http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
>>
>> Community help: http://wiki.bestpractical.com
>> Commercial support: sales at bestpractical.com
>>
>>
>> Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
>> Buy a copy at http://rtbook.bestpractical.com
>>   
> 



More information about the rt-users mailing list