[eluser]swatkins[/eluser]
This is great code, and much appreciated. I've been needing to cache sections of the page for a while now and finally found your library which works like a charm.
I did have to update one line of code to get the recursive directories to work. On line 240, I had to change
Code:
if ( ! @mkdir($test_path)) return false;
to
Code:
if ( ! @mkdir($test_path, 0755, true)) return false;
That third argument is the recursive flag and without it, I could only get 1 level of folder written. After changing that, voila, a faster website!
Thanks so much, my visitors applaud you!