ENHANCEMENT: Removed unnecessary subsite caching for better static publishing operation. (from r81673)

This commit is contained in:
Tom Rix 2010-03-01 02:53:40 +00:00
parent cfb0d238e5
commit 8b264184ec

View File

@ -462,7 +462,6 @@ JS;
* This is used primarily when using subsites in conjunction with StaticPublisher * This is used primarily when using subsites in conjunction with StaticPublisher
* *
* @return void * @return void
* @author Tom Rix
*/ */
static function writeHostMap($file = null) { static function writeHostMap($file = null) {
if (!$file) $file = Director::baseFolder().'/cache/host-map.php'; if (!$file) $file = Director::baseFolder().'/cache/host-map.php';
@ -478,7 +477,8 @@ JS;
} }
$data = '<?php $subsiteHostmap = '.var_export($hostmap, true).' ?>'; $data = '<?php $subsiteHostmap = '.var_export($hostmap, true).' ?>';
file_put_contents($file, $data);
if (is_writable($file)) file_put_contents($file, $data);
} }
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////