Does PHP "cache" scripts?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • R. Rajesh Jeba Anbiah

    #16
    Re: Does PHP "cache&quo t; scripts?

    StevePBurgess@g mail.com wrote:
    I've just run the script in Firefox again and noticed something odd.
    There are two links, thus:
    >
    MOVE UP - MOVE DOWN
    >
    When I click on MOVE UP the database isn't updated but I get this in
    the address box when the script returns me to the main page:
    >

    >
    When I click MOVE DOWN the database isn't updated and I get this:
    >

    >
    if I click MOVE UP again I get
    >

    >
    which is the same as the first time I clicked it. The r= variable is
    the unix time stamp so either firefox is caching the page or my server
    is somehow going back in time! ;o)
    >
    If I leave it for a while and try again, the number is updated to a new
    number (and sometimes the database is updated and the order on the
    credits page is changed).
    <snip>

    My guess:
    1. You're paying more to your hosting provider and they have some
    master-slave architecture for kinda data recovery.
    2. Caching issue:
    a. Your ISP is caching the pages
    b. As your scripting is instructing to cache (so you better post the
    link & phpinfo so that someone can dig the HTTP headers and provide
    suggestion) or using .html extension (some buggy proxy implementation
    will flag it as static page).

    --
    <?php echo 'Just another PHP saint'; ?>
    Email: rrjanbiah-at-Y!com Blog: http://rajeshanbiah.blogspot.com/

    Comment

    • StevePBurgess@gmail.com

      #17
      Re: Does PHP &quot;cache&quo t; scripts?

      Hi all.

      Just to "close" this, I wanted to let you know what I did that solved
      it.

      I typed:

      about:config

      into the Firefox address box and then changed the configuration
      setting:

      browser.cache.c heck_doc_freque ncy

      to 1 (always check for new content).

      The default is 3 (regularly check).

      This has solved the problem.

      This doesn't explain why the behaviour is different on different
      servers - but it has solved the problem.

      Thanks for all your input.

      Steve

      Comment

      • NC

        #18
        Re: Does PHP &quot;cache&quo t; scripts?

        StevePBurgess@g mail.com wrote:
        >
        I wanted to let you know what I did that solved it.
        >
        I typed:
        >
        about:config
        >
        into the Firefox address box and then changed the configuration
        setting:
        >
        browser.cache.c heck_doc_freque ncy
        >
        to 1 (always check for new content).
        >
        The default is 3 (regularly check).
        >
        This has solved the problem.
        >
        This doesn't explain why the behaviour is different on different
        servers - but it has solved the problem.
        It does; your ISP probably has a slightly paranoid caching server on
        their network...

        Cheers,
        NC

        Comment

        Working...