CacheInvalidator
in package
Use this class to detect used caching plugins / mechanism and trigger an invalidate.
Table of Contents
Constants
- CACHE_IMPLEMENTATIONS = [\DevOwl\CacheInvalidate\caches\AutoptimizeCacheImpl::IDENTIFIER => \DevOwl\CacheInvalidate\caches\AutoptimizeCacheImpl::class, \DevOwl\CacheInvalidate\caches\WpSuperCacheImpl::IDENTIFIER => \DevOwl\CacheInvalidate\caches\WpSuperCacheImpl::class, \DevOwl\CacheInvalidate\caches\WpRocketImpl::IDENTIFIER => \DevOwl\CacheInvalidate\caches\WpRocketImpl::class, \DevOwl\CacheInvalidate\caches\W3TotalCacheImpl::IDENTIFIER => \DevOwl\CacheInvalidate\caches\W3TotalCacheImpl::class, \DevOwl\CacheInvalidate\caches\WpFastestCacheImpl::IDENTIFIER => \DevOwl\CacheInvalidate\caches\WpFastestCacheImpl::class, \DevOwl\CacheInvalidate\caches\LiteSpeedCacheImpl::IDENTIFIER => \DevOwl\CacheInvalidate\caches\LiteSpeedCacheImpl::class, \DevOwl\CacheInvalidate\caches\BreezeImpl::IDENTIFIER => \DevOwl\CacheInvalidate\caches\BreezeImpl::class, \DevOwl\CacheInvalidate\caches\WpOptimizeImpl::IDENTIFIER => \DevOwl\CacheInvalidate\caches\WpOptimizeImpl::class, \DevOwl\CacheInvalidate\caches\SGOptimizeImpl::IDENTIFIER => \DevOwl\CacheInvalidate\caches\SGOptimizeImpl::class, \DevOwl\CacheInvalidate\caches\HummingbirdImpl::IDENTIFIER => \DevOwl\CacheInvalidate\caches\HummingbirdImpl::class, \DevOwl\CacheInvalidate\caches\CacheEnablerImpl::IDENTIFIER => \DevOwl\CacheInvalidate\caches\CacheEnablerImpl::class, \DevOwl\CacheInvalidate\caches\NginxHelperImpl::IDENTIFIER => \DevOwl\CacheInvalidate\caches\NginxHelperImpl::class, \DevOwl\CacheInvalidate\caches\CometCacheImpl::IDENTIFIER => \DevOwl\CacheInvalidate\caches\CometCacheImpl::class, \DevOwl\CacheInvalidate\caches\BorlabsCacheImpl::IDENTIFIER => \DevOwl\CacheInvalidate\caches\BorlabsCacheImpl::class, \DevOwl\CacheInvalidate\caches\SwiftPerformanceCacheImpl::IDENTIFIER => \DevOwl\CacheInvalidate\caches\SwiftPerformanceCacheImpl::class, \DevOwl\CacheInvalidate\caches\MergeMinifyRefreshImpl::IDENTIFIER => \DevOwl\CacheInvalidate\caches\MergeMinifyRefreshImpl::class, \DevOwl\CacheInvalidate\caches\ThemifyImpl::IDENTIFIER => \DevOwl\CacheInvalidate\caches\ThemifyImpl::class, \DevOwl\CacheInvalidate\caches\NitroPackImpl::IDENTIFIER => \DevOwl\CacheInvalidate\caches\NitroPackImpl::class, \DevOwl\CacheInvalidate\caches\CloudflareImpl::IDENTIFIER => \DevOwl\CacheInvalidate\caches\CloudflareImpl::class, \DevOwl\CacheInvalidate\caches\OneComImpl::IDENTIFIER => \DevOwl\CacheInvalidate\caches\OneComImpl::class, \DevOwl\CacheInvalidate\caches\RaidboxesImpl::IDENTIFIER => \DevOwl\CacheInvalidate\caches\RaidboxesImpl::class, \DevOwl\CacheInvalidate\caches\IonosPerformanceCacheImpl::IDENTIFIER => \DevOwl\CacheInvalidate\caches\IonosPerformanceCacheImpl::class, \DevOwl\CacheInvalidate\caches\BunnyCDNCacheImpl::IDENTIFIER => \DevOwl\CacheInvalidate\caches\BunnyCDNCacheImpl::class, \DevOwl\CacheInvalidate\caches\AssetCleanupCacheImpl::IDENTIFIER => \DevOwl\CacheInvalidate\caches\AssetCleanupCacheImpl::class, \DevOwl\CacheInvalidate\caches\PoweredCacheImpl::IDENTIFIER => \DevOwl\CacheInvalidate\caches\PoweredCacheImpl::class, \DevOwl\CacheInvalidate\caches\PerfmattersCacheImpl::IDENTIFIER => \DevOwl\CacheInvalidate\caches\PerfmattersCacheImpl::class, \DevOwl\CacheInvalidate\caches\WpMeteorImpl::IDENTIFIER => \DevOwl\CacheInvalidate\caches\WpMeteorImpl::class, \DevOwl\CacheInvalidate\caches\OptimizePressImpl::IDENTIFIER => \DevOwl\CacheInvalidate\caches\OptimizePressImpl::class, \DevOwl\CacheInvalidate\caches\CloudflareRocketLoader::IDENTIFIER => \DevOwl\CacheInvalidate\caches\CloudflareRocketLoader::class, \DevOwl\CacheInvalidate\caches\DebloatImpl::IDENTIFIER => \DevOwl\CacheInvalidate\caches\DebloatImpl::class, \DevOwl\CacheInvalidate\caches\EnhanceComNginxFastCgiImpl::IDENTIFIER => \DevOwl\CacheInvalidate\caches\EnhanceComNginxFastCgiImpl::class, \DevOwl\CacheInvalidate\caches\CustomCacheImpl::IDENTIFIER => \DevOwl\CacheInvalidate\caches\CustomCacheImpl::class, \DevOwl\CacheInvalidate\caches\SwiftPerformanceAiCacheImpl::IDENTIFIER => \DevOwl\CacheInvalidate\caches\SwiftPerformanceAiCacheImpl::class, \DevOwl\CacheInvalidate\caches\TheGemPerformanceImpl::IDENTIFIER => \DevOwl\CacheInvalidate\caches\TheGemPerformanceImpl::class]
Properties
- $me : CacheInvalidator
- Singleton instance.
Methods
- getCaches() : array<string|int, AbstractCache>
- Get all available caches.
- getExcludeHtmlAttributesString() : string
- See `AbstractCache#excludeHtmlAttribute()`.
- getImplementations() : mixed
- Get implementations as instances.
- getInstance() : mixed
- Get singleton instance.
- getLabels() : array<string|int, string>
- Get all available caches with label.
- invalidate() : mixed
- Invalidate all available caches.
- __construct() : mixed
- C'tor.
Constants
CACHE_IMPLEMENTATIONS
public
mixed
CACHE_IMPLEMENTATIONS
= [\DevOwl\CacheInvalidate\caches\AutoptimizeCacheImpl::IDENTIFIER => \DevOwl\CacheInvalidate\caches\AutoptimizeCacheImpl::class, \DevOwl\CacheInvalidate\caches\WpSuperCacheImpl::IDENTIFIER => \DevOwl\CacheInvalidate\caches\WpSuperCacheImpl::class, \DevOwl\CacheInvalidate\caches\WpRocketImpl::IDENTIFIER => \DevOwl\CacheInvalidate\caches\WpRocketImpl::class, \DevOwl\CacheInvalidate\caches\W3TotalCacheImpl::IDENTIFIER => \DevOwl\CacheInvalidate\caches\W3TotalCacheImpl::class, \DevOwl\CacheInvalidate\caches\WpFastestCacheImpl::IDENTIFIER => \DevOwl\CacheInvalidate\caches\WpFastestCacheImpl::class, \DevOwl\CacheInvalidate\caches\LiteSpeedCacheImpl::IDENTIFIER => \DevOwl\CacheInvalidate\caches\LiteSpeedCacheImpl::class, \DevOwl\CacheInvalidate\caches\BreezeImpl::IDENTIFIER => \DevOwl\CacheInvalidate\caches\BreezeImpl::class, \DevOwl\CacheInvalidate\caches\WpOptimizeImpl::IDENTIFIER => \DevOwl\CacheInvalidate\caches\WpOptimizeImpl::class, \DevOwl\CacheInvalidate\caches\SGOptimizeImpl::IDENTIFIER => \DevOwl\CacheInvalidate\caches\SGOptimizeImpl::class, \DevOwl\CacheInvalidate\caches\HummingbirdImpl::IDENTIFIER => \DevOwl\CacheInvalidate\caches\HummingbirdImpl::class, \DevOwl\CacheInvalidate\caches\CacheEnablerImpl::IDENTIFIER => \DevOwl\CacheInvalidate\caches\CacheEnablerImpl::class, \DevOwl\CacheInvalidate\caches\NginxHelperImpl::IDENTIFIER => \DevOwl\CacheInvalidate\caches\NginxHelperImpl::class, \DevOwl\CacheInvalidate\caches\CometCacheImpl::IDENTIFIER => \DevOwl\CacheInvalidate\caches\CometCacheImpl::class, \DevOwl\CacheInvalidate\caches\BorlabsCacheImpl::IDENTIFIER => \DevOwl\CacheInvalidate\caches\BorlabsCacheImpl::class, \DevOwl\CacheInvalidate\caches\SwiftPerformanceCacheImpl::IDENTIFIER => \DevOwl\CacheInvalidate\caches\SwiftPerformanceCacheImpl::class, \DevOwl\CacheInvalidate\caches\MergeMinifyRefreshImpl::IDENTIFIER => \DevOwl\CacheInvalidate\caches\MergeMinifyRefreshImpl::class, \DevOwl\CacheInvalidate\caches\ThemifyImpl::IDENTIFIER => \DevOwl\CacheInvalidate\caches\ThemifyImpl::class, \DevOwl\CacheInvalidate\caches\NitroPackImpl::IDENTIFIER => \DevOwl\CacheInvalidate\caches\NitroPackImpl::class, \DevOwl\CacheInvalidate\caches\CloudflareImpl::IDENTIFIER => \DevOwl\CacheInvalidate\caches\CloudflareImpl::class, \DevOwl\CacheInvalidate\caches\OneComImpl::IDENTIFIER => \DevOwl\CacheInvalidate\caches\OneComImpl::class, \DevOwl\CacheInvalidate\caches\RaidboxesImpl::IDENTIFIER => \DevOwl\CacheInvalidate\caches\RaidboxesImpl::class, \DevOwl\CacheInvalidate\caches\IonosPerformanceCacheImpl::IDENTIFIER => \DevOwl\CacheInvalidate\caches\IonosPerformanceCacheImpl::class, \DevOwl\CacheInvalidate\caches\BunnyCDNCacheImpl::IDENTIFIER => \DevOwl\CacheInvalidate\caches\BunnyCDNCacheImpl::class, \DevOwl\CacheInvalidate\caches\AssetCleanupCacheImpl::IDENTIFIER => \DevOwl\CacheInvalidate\caches\AssetCleanupCacheImpl::class, \DevOwl\CacheInvalidate\caches\PoweredCacheImpl::IDENTIFIER => \DevOwl\CacheInvalidate\caches\PoweredCacheImpl::class, \DevOwl\CacheInvalidate\caches\PerfmattersCacheImpl::IDENTIFIER => \DevOwl\CacheInvalidate\caches\PerfmattersCacheImpl::class, \DevOwl\CacheInvalidate\caches\WpMeteorImpl::IDENTIFIER => \DevOwl\CacheInvalidate\caches\WpMeteorImpl::class, \DevOwl\CacheInvalidate\caches\OptimizePressImpl::IDENTIFIER => \DevOwl\CacheInvalidate\caches\OptimizePressImpl::class, \DevOwl\CacheInvalidate\caches\CloudflareRocketLoader::IDENTIFIER => \DevOwl\CacheInvalidate\caches\CloudflareRocketLoader::class, \DevOwl\CacheInvalidate\caches\DebloatImpl::IDENTIFIER => \DevOwl\CacheInvalidate\caches\DebloatImpl::class, \DevOwl\CacheInvalidate\caches\EnhanceComNginxFastCgiImpl::IDENTIFIER => \DevOwl\CacheInvalidate\caches\EnhanceComNginxFastCgiImpl::class, \DevOwl\CacheInvalidate\caches\CustomCacheImpl::IDENTIFIER => \DevOwl\CacheInvalidate\caches\CustomCacheImpl::class, \DevOwl\CacheInvalidate\caches\SwiftPerformanceAiCacheImpl::IDENTIFIER => \DevOwl\CacheInvalidate\caches\SwiftPerformanceAiCacheImpl::class, \DevOwl\CacheInvalidate\caches\TheGemPerformanceImpl::IDENTIFIER => \DevOwl\CacheInvalidate\caches\TheGemPerformanceImpl::class]
Properties
$me
Singleton instance.
private
static CacheInvalidator
$me
= null
Methods
getCaches()
Get all available caches.
public
getCaches() : array<string|int, AbstractCache>
Return values
array<string|int, AbstractCache>getExcludeHtmlAttributesString()
See `AbstractCache#excludeHtmlAttribute()`.
public
getExcludeHtmlAttributesString() : string
Return values
stringgetImplementations()
Get implementations as instances.
public
getImplementations() : mixed
Tags
getInstance()
Get singleton instance.
public
static getInstance() : mixed
Tags
getLabels()
Get all available caches with label.
public
getLabels() : array<string|int, string>
Return values
array<string|int, string>invalidate()
Invalidate all available caches.
public
invalidate([bool $objectCache = false ]) : mixed
Parameters
- $objectCache : bool = false
__construct()
C'tor.
private
__construct() : mixed