NSWDPC\Utilities\Cloudflare\AbstractRecordCachePurgeJob
Abstract record cache purge job
- Author: James Ellis <james.ellis@dpc.nsw.gov.au>
Synopsis
class AbstractRecordCachePurgeJob
extends AbstractQueuedJob
implements
QueuedJob
{
- // constants
- const RECORD_NAME = 'PurgeRecord';
- // members
- protected integer $totalSteps = 1;
- // methods
- public void __construct()
- public void addMessage()
- public void getPurgeClient()
- public void getTitle()
- protected final array checkRecordForErrors()
- protected final true checkPurgeResult()
- public void afterComplete()
Hierarchy
Extends
- Symbiote\QueuedJobs\Services\AbstractQueuedJob
Implements
- Symbiote\QueuedJobs\Services\QueuedJob
Constants
Name | Value |
---|---|
RECORD_NAME | 'PurgeRecord' |
Members
protected
- $totalSteps
Methods
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
- __construct()
- addMessage() — Opportunity to add some logging here
- afterComplete() — If the record has a cache max-age...
- getPurgeClient()
- getTitle()