\DevOwl\RealCookieBannerCache

Automatically clear frontend cache when essential things got changed:

  • Settings
  • Customize
  • New consent revision

Summary

Methods
Properties
Constants
getPluginConstantPrefix()
customize_updated()
settings_updated()
revision_hash()
invalidate()
getInstance()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
__construct()
$me
N/A

Properties

Methods

getPluginConstantPrefix()

getPluginConstantPrefix(): string

Get the prefix of this plugin so composer packages can dynamically build other constant values on it.

Returns

string

customize_updated()

customize_updated(array  $response)

When customize got updated, refresh cache.

Parameters

array $response

settings_updated()

settings_updated(\DevOwl\RealCookieBanner\WP_HTTP_Response  $response)

When settings got updated, refresh cache.

Parameters

\DevOwl\RealCookieBanner\WP_HTTP_Response $response

revision_hash()

revision_hash(array  $result)

When a new consent got requested, refresh cache.

Parameters

array $result

invalidate()

invalidate()

Invalidate the cache with the help of `cache-invalidate` package.

getInstance()

getInstance()

Get singleton instance.

__construct()

__construct()

C'tor.