Mantis Bugtracker
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0002113 [Resin] minor always 10-25-07 09:04 11-01-07 11:08
Reporter paulberto View Status public  
Assigned To ferg
Priority normal Resolution fixed  
Status closed   Product Version 3.1.3
Summary 0002113: caching issue
Description The issue is my team and I noticed that the "Uncacheable Pages" count for specific pages grew after adding a condition to not cache the page if the initial server data hasn't loaded.
Funny thing, this condition only evaluates to true when the server starts since it takes 4-5 seconds to load the initial data statically into a singleton upon server start. So the pages are purposefully not being cached because they contain no data.

Code is really simple and looks like this:
<snip>
        $profileData = getProfileData();

         if(!$profileData) { // profileData is null if it hasn't been loaded yet
                        echo "Re-loading data, please wait";
                        exit;
         }

    header("Cache-control: max-age=60");
</snip>

The normal behavior i would expect would be to notice "uncacheable pages" grow only at the very beginning when the server loads its initial data and then cease to grow after $profileData!=null which is 100% happening after 4-5 seconds.

Due to this inconsistency, I did a little more research.... If i remove the condition (to check for null)completely, uncacheable pages never grows -- but only if i restart resin. That is, if i make the change on the spot in the php file, uncacheable pages will still grow, up until i restart resin. <COMPILE> is set to false ! After i restart resin, i will never see uncacheable pages grow for the specific file in question.

Really though bug to describe.
Additional Information using php <compile>false</compile>
Attached Files

- Relationships

- Notes
(0002431)
ferg
11-01-07 11:08

server/2714
 

- Issue History
Date Modified Username Field Change
10-25-07 09:04 paulberto New Issue
11-01-07 11:08 ferg Note Added: 0002431
11-01-07 11:08 ferg Assigned To  => ferg
11-01-07 11:08 ferg Status new => closed
11-01-07 11:08 ferg Resolution open => fixed
11-01-07 11:08 ferg Fixed in Version  => 3.1.4


Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
29 total queries executed.
26 unique queries executed.
Powered by Mantis Bugtracker