php cache function not working on jquery .load()
<p>I'm using a standard php cache script on page.php</p>

<pre><code>   $cache = 'the_location/'.$id.'.html';
   $expire = time() -3600 ; 
   if(file_exists($cache) &amp;&amp; filemtime($cache) &gt; $expire)
   {
    readfile($cache);
   } else {
   ob_start();
   // some stuff
   $pages = ob_get_contents();         
   ob_end_flush();         
           $fd = fopen("$cache", "w");
     if ($fd) {
           fwrite($fd,$pages);
        fclose($fd);
   }
    echo $pages ; }
</code></pre>

<p>On main_page.php I'm loading page.php like so:</p>

<pre><code>   $('#div').load('page.php?id=' + id);
</code></pre>

<p>If I go straight to page.php?id=1234 the page is cached and file 1234.html appears in 'the_location'
Otherwise on main_page.php nothing happens ...</p>

<p>Help is much appreciated !</p>

<p>Edit : Everything works on main_page.php and page.php, page.php is correctly loaded into main_page.php but not cached, if I load page.php through browser it is cached.</p>
