mirror of
https://github.com/silverstripe/silverstripe-subsites
synced 2024-10-22 11:05:55 +02:00
ENHANCEMENT: Removed unnecessary subsite caching for better static publishing operation. (from r81674)
This commit is contained in:
parent
8b264184ec
commit
b1ccc1220e
@ -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');
|
||||||
|
Loading…
Reference in New Issue
Block a user