NSWDPC\Utilities\Cloudflare\TagCachePurgeJob
Purge cache by tag or tags Note: requires a CF Enterprise account
- Author: James Ellis <james.ellis@dpc.nsw.gov.au>
Synopsis
class TagCachePurgeJob
extends AbstractRecordCachePurgeJob
{
- // Inherited constants from AbstractRecordCachePurgeJob
- const RECORD_NAME = 'PurgeRecord';
- // Inherited members from AbstractRecordCachePurgeJob
- protected integer $totalSteps;
- // Inherited methods from AbstractRecordCachePurgeJob
- public void __construct()
- public void addMessage()
- public void getPurgeClient()
- public void getTitle()
- protected final array checkRecordForErrors()
- protected final true checkPurgeResult()
- public void afterComplete()
Hierarchy
Constants
Name | Value |
---|---|
RECORD_NAME | 'PurgeRecord' |
Members
protected
- $totalSteps
Methods
public
- getTitle()
- process() — Process the job
Inherited from NSWDPC\Utilities\Cloudflare\AbstractRecordCachePurgeJob
protected
- checkPurgeResult() — Checks the result of the purge, if not an error the job is marked as complete
- checkRecordForErrors() — Checks the provided record for existence and whether it can return values for the required purge type
public
- addMessage() — Opportunity to add some logging here
- afterComplete() — If the record has a cache max-age...
- getPurgeClient()
- getTitle()