[Phpmyadmin-devel] Live charts and PHP 5.2

Piotr Przybylski piotr.prz at gmail.com
Thu Jun 16 14:42:25 CEST 2011


2011/6/16 Tyron Madlener <tyronx at gmail.com>:
> On Wed, Jun 15, 2011 at 6:51 PM, Tyron Madlener <tyronx at gmail.com> wrote:
>> On Wed, Jun 15, 2011 at 3:53 PM, Michal Čihař <michal at cihar.com> wrote:
>>> Hi
>>>
>>> Dne Wed, 15 Jun 2011 08:58:46 -0400
>>> Marc Delisle <marc at infomarc.info> napsal(a):
>>>
>>>> server_status.php uses header_remove() that requires PHP 5.3. Was it
>>>> discussed to change the requirement for minimum PHP version.
>>>
>>> I don't think the header manipulations should not be needed at all.
>>> Tyron are they really needed?
>>>
>>
>> I had issues with the old pChart pie not refreshing properly when the
>> Last-Modified header was set. I just tested it with leaving the
>> header, all ajax requests responses are as they should be. So we can
>> safely remove the header_remove().
>
> Nope, the problem still appears. AJAX request get cached. And I
> finally found the source of it.
> In session.inc.php the function call session_cache_limiter('private');
> causes to add the Last-Modified header.
>
> I don't know why but on repeated ajax requests, my chrome caches them,
> whatever the Last-Modified header value is. Can we change that call to
> session_cache_limiter ('nocache');? Or alternatively move up the
> $GLOBALS['is_ajax_request'] setting code in common.inc.php to before
> session.inc.php gets included and make the session_cache_limiter()
> call dependent on whether it is an ajax request.
>

Is the 'cache' option [1] set to false for this ajax request?

[1] http://api.jquery.com/jQuery.ajax/

-- 
Piotr Przybylski




More information about the Developers mailing list