Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#7 html cache in 3.4 not displaying properly sometimes

open-fixed
Terence
8
2010-08-19
2010-08-19
Terence
No

There is a bug with the new html caching in oscailt 3.4 where sometimes the read back of the cached files fails and a blank page is displayed.

This is probably related to file locks and the response from the fopen probably fails and nothing is read back.

The solution was to use the function file_get_contents() instead of file() to read the full file. The former reads the file to a string while the later to an array. It is likely the former is quicker and does not suffer from the file lock problem since inherently it is a read operation

The fix is in version 1.9 of the index.php

Discussion

  • Terence
    Terence
    2010-08-19

    Fixed and will wait awhile until no problems reported

     
  • Terence
    Terence
    2010-08-19

    • status: open --> open-fixed
     
  • Terence
    Terence
    2012-01-14

    See v3.5 for latest fixes to this issue which will handle the different user saved preferences