Clear SITE_CONTENT on full reload
This commit is contained in:
parent
2289b2f55a
commit
c728a8692b
|
@ -228,6 +228,8 @@ fn create_new_site(
|
||||||
include_drafts: bool,
|
include_drafts: bool,
|
||||||
ws_port: Option<u16>,
|
ws_port: Option<u16>,
|
||||||
) -> Result<(Site, String)> {
|
) -> Result<(Site, String)> {
|
||||||
|
SITE_CONTENT.write().unwrap().clear();
|
||||||
|
|
||||||
let mut site = Site::new(root_dir, config_file)?;
|
let mut site = Site::new(root_dir, config_file)?;
|
||||||
|
|
||||||
let base_address = format!("{}:{}", base_url, interface_port);
|
let base_address = format!("{}:{}", base_url, interface_port);
|
||||||
|
|
Loading…
Reference in a new issue