AdvantageCMS.Core.Common.BaseClasses Namespace
Build With Advantage

CMSNavigationEngine..::..GetNavigationForCacheVerify Method

Single-call routing-cache verify. Wraps Route_CacheVerify()()()() (sp_CORE_Route_CacheVerify) which does both the Nav fingerprint check and the rewrite-target existence check in one round trip, then returns the same Nav projection as GetNavigationByID(Int32, Int32, Int32, ActionArgs) when both pass.

Three-state return for RoutingCache:

  • null -- the SP threw (missing during a deploy/upgrade window, schema drift, transient SQL error). Caller bypasses the cache for this hit but does not evict the entry; next request retries. The cold path keeps the site live in the meantime.
  • Returned Navigation with PublishedTemplateFilePath == null -- SP returned zero rows (fingerprint mismatch, Nav deleted, or rewrite target republished / unpublished / remapped). Caller evicts and falls through to the cold path.
  • Returned Navigation with PublishedTemplateFilePath set -- verify passed; the Navigation is fully populated (rewrite columns included) and ready to attach to the RewriteResult.

Namespace:  AdvantageCMS.Core.Admin.Engine
Assembly:  AdvantageCMS.Core (in AdvantageCMS.Core.dll)

Syntax


public Navigation GetNavigationForCacheVerify(
	int navigationId,
	int domainId,
	int languageId,
	Nullable<int> expectedNavigationPageId,
	int expectedPublishedSitePageId,
	bool isReWrite,
	Guid reWriteMasterId,
	int reWriteVersion,
	DateTime reWriteObjectLastModifiedDate,
	string reWriteObjectTypeName,
	string seoName
)

Parameters

navigationId
Type: Int32
domainId
Type: Int32
languageId
Type: Int32
expectedNavigationPageId
Type: Nullable<(Of <(<'Int32>)>)>
expectedPublishedSitePageId
Type: Int32
isReWrite
Type: Boolean
reWriteMasterId
Type: Guid
reWriteVersion
Type: Int32
reWriteObjectLastModifiedDate
Type: DateTime
reWriteObjectTypeName
Type: String
seoName
Type: String