1
在我的一個項目中,我使用Umbraco v4.7.1,asp.net 4,Windows 7,SQL Server 2008 & IIS 7.我在多個頁面中遇到了速度問題。當我把我的代碼跟蹤我發現性能問題是由於代碼umbraco中的性能問題4.7.1
myDocument.Publish(createdUser);
umbraco.library.UpdateDocumentCache(myDocument.Id);
我發現它花了約21秒。
請幫助我的人,以提高性能
TraceStart beforepublish 26/07/2012 12:01:59 0.715882046461212 0.000089
Traceend afterpublish 26/07/2012 12:02:19 21.5144408018338 20.798559
您的代碼不顯示您的跟蹤語句。什麼時候需要時間,對Publish的調用,對UpdateDocumentCache的調用還是兩者兼而有之? – sisve 2012-07-26 07:36:23
您的內容樹中有多少個節點? – BeaverProj 2012-07-27 17:01:50
此外,哪種版本的Umbraco以及您正在創建的DocType有多少屬性? – BeaverProj 2012-07-27 17:08:13