Browse Source

Z991239-5298 #comment feat: clear all cache in install mode

chenliangyu 1 year ago
parent
commit
537f6e95fd
1 changed files with 8 additions and 1 deletions
  1. 8 1
      Module/mod_chromium/mod_chromium.cpp

+ 8 - 1
Module/mod_chromium/mod_chromium.cpp

@@ -559,7 +559,13 @@ namespace Chromium {
 			}
 		}
 		else
+		{
+			ResourceWatcher::BrowserCacheClean evt;
+			evt.needClean = 1;
+			OnBrowserCacheClean(NULL, 0, 0, evt);
 			openInstallPage();
+		}
+			
 	}
 
 	void CChromiumEntity::OnPreStart(CAutoArray<CSimpleStringA> strArgs, CSmartPointer<ITransactionContext> pTransactionContext)
@@ -855,7 +861,8 @@ namespace Chromium {
 			delete m_pTimerListener;
 			m_pTimerListener = NULL;
 		}
-		OnPreStart_openWeb();//重新调用open web
+		if(!m_installMode)
+			OnPreStart_openWeb();//重新调用open web
 
 #endif 
 	}