Cache
    
            
            in package
            
        
    
    
            
            Uses
                            UtilsProvider                    
    
Automatically clear frontend cache when essential things got changed:
- Settings
- Customize
- New consent revision
Table of Contents
Properties
Methods
- customize_updated() : mixed
- When customize got updated, refresh cache.
- getInstance() : mixed
- Get singleton instance.
- getPluginConstantPrefix() : string
- Get the prefix of this plugin so composer packages can dynamically build other constant values on it.
- invalidate() : mixed
- Invalidate the cache with the help of `cache-invalidate` package.
- revision_hash() : mixed
- When a new consent got requested, refresh cache.
- settings_updated() : mixed
- When settings got updated, refresh cache.
- __construct() : mixed
- C'tor.
Properties
$me
Singleton instance.
    private
    static    Cache
    $me
     = null
    
    
    
Methods
customize_updated()
When customize got updated, refresh cache.
    public
                    customize_updated(array<string|int, mixed> $response) : mixed
    Parameters
- $response : array<string|int, mixed>
getInstance()
Get singleton instance.
    public
            static        getInstance() : mixed
    Tags
getPluginConstantPrefix()
Get the prefix of this plugin so composer packages can dynamically build other constant values on it.
    public
                    getPluginConstantPrefix() : string
    Tags
Return values
stringinvalidate()
Invalidate the cache with the help of `cache-invalidate` package.
    public
                    invalidate() : mixed
    revision_hash()
When a new consent got requested, refresh cache.
    public
                    revision_hash(array<string|int, mixed> $result) : mixed
    Parameters
- $result : array<string|int, mixed>
settings_updated()
When settings got updated, refresh cache.
    public
                    settings_updated(WP_HTTP_Response $response) : mixed
    Parameters
- $response : WP_HTTP_Response
__construct()
C'tor.
    private
                    __construct() : mixed