'<sc:text'= =“”not =“”shows =“”any =“”text =“”when =“”i =“”put =“”=“”'outputcache'=“”指令, =“”为什么?=“”

时间:2017-03-11 20:44:10

标签: sitecore outputcache

=“”

没有它它会正常工作,但我需要为此usercontrol / syblayout启用'OutputCache'。我该如何启用它?

输出缓存存在时,不会触发

Page_LoadPage_PreRender。 那我怎样才能缓存我的数据源呢?

<%@ OutputCache Duration="120" VaryByParam="none" VaryByCustom="RAWURL"  %>

    <%-- Tabs --%>
        <div class="product-tabs">         
            <nav>
                <ul class="  aa">
                    <asp:PlaceHolder runat="server" ID="tab1">
                        <li class="item selected">
                            <a data-content="content-tab-1" href="#0" runat="server" id="lblTab1">
                                <sc:Text runat="server" Field="Tab 1 Text" />
                            </a>
                        </li>
                    </asp:PlaceHolder>
                    <asp:PlaceHolder runat="server" ID="tab2">
                        <li class="item">
                            <a data-content="content-tab-2" href="#0" runat="server" id="lblTab2">
                                <sc:Text runat="server" Field="Tab 2 Text" />
                            </a>
                        </li>
                    </asp:PlaceHolder>
                    <asp:PlaceHolder runat="server" ID="tab3">
                        <li class="item">
                            <a data-content="content-tab-3" href="#0" runat="server" id="lblTab3">
                                <sc:Text runat="server" Field="Tab 3 Text" />
                            </a>
                        </li>
                    </asp:PlaceHolder>
                    <asp:PlaceHolder runat="server" ID="tab4">
                        <li class="item">
                            <a data-content="content-tab-4" href="#0" runat="server" id="lblTab4">
                                <sc:Text runat="server" Field="Tab 4 Text" />
                            </a>
                        </li>
                    </asp:PlaceHolder>
                  </ul>
              </nav>           
          </div>

0 个答案:

没有答案