Download the PHP package andrewandante/silverstripe-async-publisher without Composer
On this page you can find all versions of the php package andrewandante/silverstripe-async-publisher. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download andrewandante/silverstripe-async-publisher
More information about andrewandante/silverstripe-async-publisher
Files in andrewandante/silverstripe-async-publisher
Package silverstripe-async-publisher
Short Description An asynchronous publishing hook for large datasets.
License BSD-3-Clause
Informations about the package silverstripe-async-publisher
Silverstripe Asynchronous Publishing
Pushes writing and publishing to a Queued Job to avoid in-browser timeouts
Installation
composer require andrewandante/silverstripe-async-publisher
Once the module is installed, simply apply AndrewAndante\SilverStripe\AsyncPublisher\Extension\AsyncPublisherExtension
to any classes that you wish to enable Queued Publishing for:
This will apply it by default to all instances of that class. You can make this a little more configurable
using the shouldPreferAsync()
method in an extension; for example, you might attach the below to UserDefinedForm
:
Which will default to Queueing if there are 20 or more fields on the User Defined form, but otherwise simply add the queueing actions to the "more options" menu
Features
- replaces the "Save" and "Publish" buttons with "Queue Save" and "Queue Publish"
- adds "Save immediately" and "Publish immediately" to the "More Options" menu (in case of emergency)
- prevents editing while jobs are in the queue to prevent weird race conditions
Screenshots
TODOS
- test better with Unpublish and Archive
- make it more configurable/extensible in general
Maintainers
- Andrew Paxley [email protected]
All versions of silverstripe-async-publisher with dependencies
silverstripe/cms Version ^4.11
symbiote/silverstripe-queuedjobs Version ^4.10
silverstripe/versioned Version ^1.11