\DevOwl\CacheInvalidate\cachesWpSuperCacheImpl

WP Super Cache.

Summary

Methods
Properties
Constants
isActive()
invalidate()
failureExcludeAssets()
excludeAssetsHook()
excludeHtmlAttribute()
label()
No public properties found
IDENTIFIER
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Constants

IDENTIFIER

IDENTIFIER ='wp-super-cache'

Methods

isActive()

isActive(): boolean

Check if the caching mechanism / plugin is active and available.

Returns

boolean

invalidate()

invalidate(): mixed

Trigger a cache invalidation.

Returns

mixed

failureExcludeAssets()

failureExcludeAssets(): void|boolean

Returns `true` if the plugin does not support excluding assets but has the feature in general.

Returns void if the does not have this feature or when excluding is supported.

Returns

void|boolean

excludeAssetsHook()

excludeAssetsHook(\DevOwl\CacheInvalidate\ExcludeAssets  $excludeAssets): void|false

Exclude JavaScript and CSS assets.

Parameters

\DevOwl\CacheInvalidate\ExcludeAssets $excludeAssets

Returns

void|false —

Returns false if the plugin does not support excluding assets but has the feature in general

excludeHtmlAttribute()

excludeHtmlAttribute(): false|string

Similar to `excludeAssetsHook`, but instead of using hooks you can use `CacheInvalidator#getExcludeHtmlAttributesString()` to append to your HTML markup so it gets ignored by the cache plugin.

Returns

false|string

label()

label()

Get the label.