通過設置Query.MaxItems解決:
<setting name="Query.MaxItems">
<patch:attribute name="value">1000</patch:attribute>
</setting>
說明:
在大型項目中,你可能有很多的佔位符(更多然後260什麼是Sitecore Query API一次讀取的默認項目數量)。
Sitecore團隊設置了限制,但佔位緩存未固定,仍然只讀取一次項目,以避免由於限制而未添加到緩存中的結果佔位符被跳過。
這是從反射鏡拍攝的緩存管理器的代碼:
public virtual void Reload()
{
lock (FieldRelatedItemCache.Lock)
{
this.itemIDs = new SafeDictionary<string, ID>();
Item[] local_1 = this.Database.SelectItems(string.Format("{0}//*[@@templateid = '{1}']", (object) this.ItemRoot.Paths.FullPath, (object) this.ItemTemplate));
if (local_1 == null)
return;
foreach (Item item_0 in local_1)
{
string local_3 = item_0[this.FieldKey];
if (!string.IsNullOrEmpty(local_3) && !this.itemIDs.ContainsKey(this.GetCacheKey(local_3)))
this.Add(local_3, item_0);
}
}
}
來源
2016-09-05 17:11:56
ALZ
你的意思是你有看到空的佔位符在xEditor一個問題嗎?如果是這樣,請確保您在佈局/佔位符設置中定義了佔位符。 – RvanDalen
我已經爲它定義了佔位符設置項目。 –
您是否以管理員身份登錄?當前設置和佔位符鍵有完全匹配,那麼你應該看到一個畫布區域。否則,我遇到過這樣的情況,它看起來不像是渲染,但它包含一個渲染,它返回0高度的HTML標記。 – RvanDalen