diff --git a/.github/scripts/deploy-appstarter b/.github/scripts/deploy-appstarter index 870f24760d6d..29dfe66db64c 100644 --- a/.github/scripts/deploy-appstarter +++ b/.github/scripts/deploy-appstarter @@ -20,7 +20,7 @@ git checkout master rm -rf * # Copy common files -releasable='app public writable env LICENSE spark' +releasable='app public writable env LICENSE spark preload.php' for fff in $releasable; do cp -Rf ${SOURCE}/$fff ./ diff --git a/.github/scripts/deploy-framework b/.github/scripts/deploy-framework index 9396ed88aa04..cc9d89e7acc7 100644 --- a/.github/scripts/deploy-framework +++ b/.github/scripts/deploy-framework @@ -20,7 +20,7 @@ git checkout master rm -rf * # Copy common files -releasable='app public writable env LICENSE spark system' +releasable='app public writable env LICENSE spark system preload.php' for fff in $releasable; do cp -Rf ${SOURCE}/$fff ./ diff --git a/admin/starter/preload.php b/preload.php similarity index 96% rename from admin/starter/preload.php rename to preload.php index ae935b0b9de2..63c781c220c5 100644 --- a/admin/starter/preload.php +++ b/preload.php @@ -16,7 +16,8 @@ * See https://www.php.net/manual/en/opcache.preloading.php * * How to Use: - * 1. Set preload::$paths. + * 0. Copy this file to your project root folder. + * 1. Set the $paths property of the preload class below. * 2. Set opcache.preload in php.ini. * php.ini: * opcache.preload=/path/to/preload.php