Ensure preloaded caches by using a jobqueue to asynchronously request all published documents to prefill all caches especially for routing, fusion and if installed full-page-caches.
- Martin Ficzel - [email protected]
The development and the public-releases of this package is generously sponsored by http://www.sitegeist.de.
By default the TurboCharger will use the fake-queue from Flowpack.JobQueue.Common but this will probably not work as
you expect as it will process all jobs directly after the data has been persisted.
- Install a different job-queue implementation package that can persist the queue items like
Flowpack.JobQueue.Doctrine.
composer require flowpack/jobqueue-doctrine- Configure the queue
sitegeist-turbochargerto be handled by that package.
Flowpack:
JobQueue:
Common:
queues:
'sitegeist-turbocharger':
className: 'Flowpack\JobQueue\Doctrine\Queue\DoctrineQueue'- Setup the queue
sitegeist-turbocharger
./flow queue:setup sitegeist-turbocharger- Run a worker
sitegeist-turbocharger
./flow job:work --exit-after 3590 --queue sitegeist-turbochargerSitegeist:
TurboCharger:
# enable the feature entirely
enabled: true
# Configure the url for fetching: the headers `Host` and `X-Forward-Proto`
# are used to simulate an external request.
# Use this to configure any special ports you may need like `http://localhost:8080`
internalBaseUrl: 'http://localhost'We will gladly accept contributions. Please send us pull requests.