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 r81673)
This commit is contained in:
parent
cfb0d238e5
commit
8b264184ec
@ -462,7 +462,6 @@ JS;
|
||||
* This is used primarily when using subsites in conjunction with StaticPublisher
|
||||
*
|
||||
* @return void
|
||||
* @author Tom Rix
|
||||
*/
|
||||
static function writeHostMap($file = null) {
|
||||
if (!$file) $file = Director::baseFolder().'/cache/host-map.php';
|
||||
@ -478,7 +477,8 @@ JS;
|
||||
}
|
||||
|
||||
$data = '<?php $subsiteHostmap = '.var_export($hostmap, true).' ?>';
|
||||
file_put_contents($file, $data);
|
||||
|
||||
if (is_writable($file)) file_put_contents($file, $data);
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
Loading…
Reference in New Issue
Block a user