Mantis Bugtracker

Viewing Issue Advanced Details Jump to Notes ] View Simple ] 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 Platform
Status closed   OS
Projection none   OS Version
ETA none Fixed in Version 3.1.4 Product Version 3.1.3
  Product Build
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:
        $profileData = getProfileData();

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

    header("Cache-control: max-age=60");

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.
Steps To Reproduce
Additional Information using php <compile>false</compile>
Attached Files

- Relationships

- Notes
11-01-07 11:08


- 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