From 253d385fb6d61f677101e376787debded306e376 Mon Sep 17 00:00:00 2001 From: kenjis Date: Sun, 4 Dec 2022 16:06:03 +0900 Subject: [PATCH 1/2] chore: move preload.php codeigniter4/framework also should have this file. --- .github/scripts/deploy-appstarter | 2 +- .github/scripts/deploy-framework | 2 +- admin/starter/preload.php => preload.php | 0 3 files changed, 2 insertions(+), 2 deletions(-) rename admin/starter/preload.php => preload.php (100%) 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 100% rename from admin/starter/preload.php rename to preload.php From 592ac3d05f867ee15e958c51cd5785306f94fd0e Mon Sep 17 00:00:00 2001 From: kenjis Date: Sun, 4 Dec 2022 18:52:22 +0900 Subject: [PATCH 2/2] docs: update How to Use --- preload.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/preload.php b/preload.php index ae935b0b9de2..63c781c220c5 100644 --- a/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