https://github.com/flownative/flow-preload-primer
Experimental package providing preloading support
https://github.com/flownative/flow-preload-primer
Last synced: about 2 months ago
JSON representation
Experimental package providing preloading support
- Host: GitHub
- URL: https://github.com/flownative/flow-preload-primer
- Owner: flownative
- Created: 2021-09-13T07:35:43.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-10-31T13:55:33.000Z (over 1 year ago)
- Last Synced: 2024-04-13T19:32:29.168Z (about 1 year ago)
- Language: PHP
- Size: 7.81 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](http://opensource.org/licenses/MIT)
# PHP Preload Primer
This [Flow](https://flow.neos.io) package is an experiment to generate
preloading information and preload classes for PHP's opcache.## How does it work?
tldr;
- `touch Configuration/Development/Beach/Instance/PreloadingFiles.on`
- request a few URLs via the browser
- find `Configuration/Development/Beach/Instance/PreloadingFiles.json`
inside the container, move it to the same directory outside the
container, so you can add it to Git
- remove `Configuration/Development/Beach/Instance/PreloadingFiles.on`
- deploy the site with PHP's opcache script pointing to
`/application/Packages/Application/Flownative.PreloadPrimer/Scripts/preload.php`## Compatibility
…
## Installation
The Preloading Primer plugin is installed as a regular Flow package via
Composer. For your existing project, simply include
`flownative/preload-primer` into the dependencies of your Flow or Neos
distribution:```bash
$ composer require flownative/preload-primer
```