예제 #1
0
    /// <summary>
    /// Gets the default cache dependencies for the data source.
    /// </summary>
    public override string GetDefaultCacheDependendencies()
    {
        string result = base.GetDefaultCacheDependendencies();

        // Add the document dependencies (based on path and site name)
        if (UseDocumentFilter)
        {
            if (result != null)
            {
                result += "\n";
            }
            result += TreeProvider.GetDocumentCacheDependencies(siteName, null, aliasPath, 0);
        }

        // Add tag group dependency
        if (tgi != null)
        {
            if (result != null)
            {
                result += "\n";
            }
            result += "cms.taggroup|byid|" + tgi.TagGroupID;
        }

        return(result);
    }