silverstripe / staticpublishqueue
Static publishing queue to create static versions of pages for enhanced performance and security
Installs: 87 071
Dependents: 5
Suggesters: 1
Security: 0
Stars: 46
Watchers: 20
Forks: 57
Open Issues: 9
Type:silverstripe-vendormodule
Requires
- php: ^8.1
- silverstripe/cms: ^5
- silverstripe/config: ^2
- silverstripe/framework: ^5.1
- silverstripe/versioned: ^2
- symbiote/silverstripe-queuedjobs: ^5
Requires (Dev)
- 7.x-dev
- 6.x-dev
- 6.2.x-dev
- 6.2.2
- 6.2.1
- 6.2.0
- 6.2.0-rc1
- 6.2.0-beta1
- 6.1.x-dev
- 6.1.0
- 6.1.0-rc1
- 6.1.0-beta1
- 6.0.x-dev
- 6.0.1
- 6.0.0
- 6.0.0-rc1
- 6.0.0-beta2
- 6.0.0-beta1
- 5.x-dev
- 5.3.x-dev
- 5.3.1
- 5.3.0
- 5.2.x-dev
- 5.2.0
- 5.1.x-dev
- 5.1.0
- 5.0.x-dev
- 5.0.0
- 4.x-dev
- 4.0.0
- 4.0.0-beta.1
- 4.0.0-alpha.2
- 4.0.0-alpha.1
- 3.x-dev / 3.4.x-dev
- 3.3.x-dev
- 3.3.1
- 3.3.0
- 3.2.0
- 3.1.0
- 3.0.0
- 2.0.x-dev
- 1.1.x-dev
- 1.0.x-dev
- dev-master
- dev-bugfix/parentage-update
This package is auto-updated.
Last update: 2024-10-30 21:53:04 UTC
README
Installation
composer require silverstripe/staticpublishqueue
Brief
This module provides an API for your project to be able to generate a static cache of your pages to enhance performance by not booting Silverstripe in order to serve requests.
It generates the cache files using the QueuedJobs module.
Unit-testing with StaticPublisherState to disable queuedjobs for unit-tests
You can use StaticPublisherState
to disable queuejobs job queueing and logging in unit-testing to improve performance.
Add the following yml to your project:
---- Name: staticpublishqueue-tests Only: classexists: - 'Symbiote\QueuedJobs\Tests\QueuedJobsTest\QueuedJobsTest_Handler' - 'SilverStripe\StaticPublishQueue\Test\QueuedJobsTestService' ---- SilverStripe\Core\Injector\Injector: SilverStripe\Dev\State\SapphireTestState: properties: States: staticPublisherState: '%$SilverStripe\StaticPublishQueue\Dev\StaticPublisherState'