PHPackages                             andrewandante/silverstripe-async-publisher - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Queues &amp; Workers](/categories/queues)
4. /
5. andrewandante/silverstripe-async-publisher

ActiveSilverstripe-vendormodule[Queues &amp; Workers](/categories/queues)

andrewandante/silverstripe-async-publisher
==========================================

An asynchronous publishing hook for large datasets.

v2.1.0(4mo ago)22073BSD-3-ClausePHPPHP ^8.3

Since Jun 25Pushed 4mo ago2 watchersCompare

[ Source](https://github.com/andrewandante/silverstripe-async-publisher)[ Packagist](https://packagist.org/packages/andrewandante/silverstripe-async-publisher)[ RSS](/packages/andrewandante-silverstripe-async-publisher/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (6)Versions (13)Used By (0)

Silverstripe Asynchronous Publishing
====================================

[](#silverstripe-asynchronous-publishing)

[![CircleCI](https://camo.githubusercontent.com/fd22c94bd4f17b6a13753746e2eb96d4da1f47e142728a42d58af582cdfe75fb/68747470733a2f2f636972636c6563692e636f6d2f67682f616e64726577616e64616e74652f73696c7665727374726970652d6173796e632d7075626c69736865722f747265652f6d61696e2e7376673f7374796c653d737667)](https://circleci.com/gh/andrewandante/silverstripe-async-publisher/tree/main)

Pushes writing and publishing to a Queued Job to avoid in-browser timeouts

Installation
------------

[](#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:

```
---
name: async-publisher-config
---
My\SuperSlow\Page:
  extensions:
      - AndrewAndante\SilverStripe\AsyncPublisher\Extension\AsyncPublisherExtension
```

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`:

```
