[rt-users] System-wide Default Refresh Rate

Mathew Snyder theillien at yahoo.com
Wed Jul 18 23:59:16 EDT 2007


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

That didn't work either.  So far what I've done is to add the lines in the patch
above to my autohandler file.  I've adjusted html/Elements/Refresh to point to a
default that isn't 0.  I've added the above lines to my RT_Siteconfig.pm file.

I'm beginning to think this is broken and until a major fix is made, it won't
work without cobbled-together code.

Keep up with me and what I'm up to: http://theillien.blogspot.com



More information about the rt-users mailing list