Download the PHP package quinninteractive/silverstripe-clearkey without Composer
On this page you can find all versions of the php package quinninteractive/silverstripe-clearkey. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download quinninteractive/silverstripe-clearkey
More information about quinninteractive/silverstripe-clearkey
Files in quinninteractive/silverstripe-clearkey
Package silverstripe-clearkey
Short Description Silverstripe module to manage partial-cache invalidation
License BSD-3-Clause
Informations about the package silverstripe-clearkey
ClearKey: A Silverstripe module to manage partial-cache invalidation
When using Silverstripe’s partial caching, the keys you use can usually be grouped into two types.
- Cache identifier keys, which help tell one cache block from another
- Cache clearing keys, which tell us when a block is stale
Take this partial-cache block as an example:
These identifier keys help tell one promo from another:
'Promo'
$ID
$Link
These clearing keys help tell us when the content is stale:
Promo.LastEdited
$List('SiteTree').max('LastEdited')
$List('SiteTree').count()
Partial caches do a great job with identifier keys, but have to hit the database at every page load to calculate some of the clearing keys, especially the aggregation ones.
ClearKey solves this by letting you manage the calculating of clearing of stale data whenever a relevant data object is saved, instead of on every page load. With ClearKey, the example cache block might look like this:
You define the clear keys with a corresponding config to describe which classes being updated should invalidate each key. In the example below, the Promo
key is invaldated whenever a Promo
or SiteTree
is saved.
Current version: 1.0.0
All versions of silverstripe-clearkey with dependencies
silverstripe/vendor-plugin Version ^1.0
silverstripe/framework Version ^4.0
silverstripe/versioned Version ^1.0
silverstripe/admin Version ^1.0