public function writeCache($cacheFile, $content, $serialize = false)
{
if ($cacheFile && ($fh = fopen($cacheFile, 'w'))) {
if (true === $serialize) {
fwrite($fh, "<?php return '" . serialize($content) . "';");
} else {
fwrite($fh, '<?php return ' . var_export($content, true) . ';');
}
fclose($fh);
return true;
}
return false;
}