Table of Contents

Interface IOutputCacheManagementService

Namespace
ToSic.Sxc.Services.OutputCache
Assembly
ToSic.Sxc.Services.dll

Service on Kit.OutputCacheManagement to invalidate LightSpeed output-cache markers for a specific app.

[WorkInProgressApi("Still WIP v21.06")]
public interface IOutputCacheManagementService

Remarks

This is intentionally separate from ToSic.Sxc.Services.OutputCache.IModuleOutputCacheService, which only affects the current render. Management operations require the target appId explicitly, so they do not depend on ambient execution context.

Methods

Flush(int, NoParamOrder, IEnumerable<string>?)

Flush output-cache entries for a specific app.

int Flush(int appId, NoParamOrder npo = default, IEnumerable<string>? dependencies = null)

Parameters

appId int

The app whose output-cache markers should be touched.

npo NoParamOrder

see Convention: Named Parameters

dependencies IEnumerable<string>

Optional named dependencies to flush selectively. If omitted or empty after normalization, the app-wide output-cache marker is touched.

Returns

int

The number of normalized named dependency markers that were touched. Returns 0 when the app-wide flush path is used.