esotalk/esoTalk — Issue #48: Cache on Windows server does not work
Author: Thirtysixway
Created: 2011-11-25 13:52:37+00:00
State: open

Posted by Ram at http://esotalk.org/forum/conversation/post/298

OK, this is because of this line

if (!is_dir($dir .= "/$part")) mkdir($dir); in functions.general.php
It's adding a slash at the beginning hence my path becomes "/D:\\install\\...." which is not valid.

the whole block needs to be changed to
foreach($parts as $part)
if (!is_dir($dir .= "$part/")) mkdir($dir);
return file_put_contents("$dir$file", $contents);