Invalidate a Page Cache Partition
Invalidating a page cache partition empties the cache for each pipeline. The cache is only refreshed when the pipeline is called and the appropriate page rendered. To lessen the performance impact on the storefront, the cache is invalidated over a period of 15 minutes.
If you want to use the InvalidateWebCache
pipelet to invalidate specific
partitions across all of your sites, use the same name for all those partitions. The
pipelines included in these definitions can differ, as long as the names of the partitions
are the same.
Invalidating a page cache partition Programmatically
You can create a pipeline to run in a job that can invalidate one or more page cache partition IDs. It can invalidate partitions with matching names in different sites.
Use the InvalidateWebCache
pipelet to
invalidate a page cache partition, or a list of partitions.
- SiteID
- specifies which site to invalidate. If not specified, the site context is used to
invalidate partitions for the current site. Specifying
"ALL
” invalidates all sites in the organization. - InvalidateStaticCache
- when set to
true
, the static content cache and the entire page cache are invalidated, regardless of the other parameters. - InvalidatePageCache
- when set to
true
, the system invalidates all or part of the page cache, depending on the other parameters specified. - PageCachePartitionIDs
- if specified, only invalidates the partitions that are specified as a
comma-separated list. For example, if
"Homepage,SlotsContent"
is specified, then theHomepage
partition andSlotsContent
partition are invalidated. Don't include spaces between the comma-separated partition IDs.
InvalidateWebCache
pipelet, as it doesn't have an ID.