IsaacRankin\SocialFeed\SocialFeedCacheQueuedJob
Synopsis
class SocialFeedCacheQueuedJob
extends AbstractQueuedJob
{
- // members
- private static integer $cache_time_offset = 300;
- // methods
- public void createJob()
- public void __construct()
- public void getTitle()
- public void process()
- public void afterComplete()
Hierarchy
Extends
- Symbiote\QueuedJobs\Services\AbstractQueuedJob
Members
private
- $cache_time_offset
—
int
Set queued job execution time to be 5 minutes before the cache expires by default.
Methods
public
- __construct()
- afterComplete() — Called when the job is determined to be 'complete'
- createJob() — Setup job that updates the feed cache 5 minutes before it expires so the end-user doesn't experience page-load time slowdown.
- getTitle() — Get the name of the job to show in the QueuedJobsAdmin.
- process() — Gets the providers feed and stores it in the providers cache.