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

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

View File

@ -457,14 +457,14 @@ JS;
} }
/** /**
* Write a host->domain map to cache/host-map.php * Write a host->domain map to subsites/host-map.php
* *
* 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
*/ */
static function writeHostMap($file = null) { static function writeHostMap($file = null) {
if (!$file) $file = Director::baseFolder().'/cache/host-map.php'; if (!$file) $file = Director::baseFolder().'/subsites/host-map.php';
$hostmap = array(); $hostmap = array();
$subsites = DataObject::get('Subsite'); $subsites = DataObject::get('Subsite');