Part of the exception thrown on my system:
sfCacheException
message: Unable to write cache file "D:\sfProjectPath\cache\App1\dev\template\/localhost/App1/App1_dev.php/Navigation/leftMenuList\Tools_report.cache"
code: N/A
class: sfFileCache
file: D:\symfony-trunk\lib\symfony\cache\sfFileCache.class.php
line: 519
Possible bug-code: (Revision 143)
class sfFileCache extends sfCache
{
...
private function getFileName($id, $namespace)
{
$file = ($this->fileNameProtection) ? md5($id).$this->suffix : $id.$this->suffix;
if ($namespace)
{
''' $path = $this->cacheDir.DIRECTORY_SEPARATOR.$namespace.DIRECTORY_SEPARATOR;
''' }
else
{
$path = $this->cacheDir.DIRECTORY_SEPARATOR;
}
if ($this->hashedDirectoryLevel > 0)
{
$hash = md5($file);
for ($i = 0; $i < $this->hashedDirectoryLevel; $i++)
{
$path = $path.substr($hash, 0, $i + 1).'/';
}
}
return array($path, $file);
}
...
}
Reason: $namespace may contain '/' (using URI to create namespace) and DIRECTORY_SEPARATOR = '\' on Windows. In the end, error path is created:
D:\sfProjectPath\cache\App1\dev\template\/localhost/App1/App1_dev.php/Navigation/leftMenuList\Tools_report.cache
(Notice the \/ part)