[TYPO3-core] FYI24: 10066: AJAX relogin polls server too often
Steffen Kamper
info at sk-typo3.de
Tue Jan 6 17:40:01 CET 2009
Hi,
Xavier Perseguers schrieb:
> Hi Dmitry,
>
>> This is SVN patch request.
>>
>> Type: tweak
>>
>> Branches: trunk
>>
>> BT reference: http://bugs.typo3.org/view.php?id=10066
>>
>> Problem: AJAX relogin script makes a request to the server every 10
>> seconds, which is not good because (1) it is too often and (2) it may
>> have problems if the network is slow.
>>
>> Solution: poll once in 60 seconds and increase timeout value in the
>> AjaxLogin class from 60 to 120 seconds. This way user will have 1
>> minute betwee the AJAX request and real timeout to press "Stay logged
>> in".
>
good one! I will test it tonight.
> You deleted a parameter "frequency: 10" without adding "frequency: 60".
> Is this OK?
yep - frequency is need for PeriodicalUpdater, wrong in normal Ajaxrequest.
vg Steffen
>
More information about the TYPO3-team-core
mailing list