From 47af9c0cbd91010bbcf760016a8ff8f9fd7ac4d9 Mon Sep 17 00:00:00 2001 From: kenjis Date: Tue, 11 Jul 2023 19:45:37 +0900 Subject: [PATCH] docs: add Config caching code as comments --- public/index.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/public/index.php b/public/index.php index 0cdc61b05ddd..1cc4710549d5 100644 --- a/public/index.php +++ b/public/index.php @@ -48,6 +48,11 @@ define('ENVIRONMENT', env('CI_ENVIRONMENT', 'production')); } +// Load Config Cache +// $factoriesCache = new \CodeIgniter\Cache\FactoriesCache(); +// $factoriesCache->load('config'); +// ^^^ Uncomment these lines if you want to use Config Caching. + /* * --------------------------------------------------------------- * GRAB OUR CODEIGNITER INSTANCE @@ -73,6 +78,10 @@ $app->run(); +// Save Config Cache +// $factoriesCache->save('config'); +// ^^^ Uncomment this line if you want to use Config Caching. + // Exits the application, setting the exit code for CLI-based applications // that might be watching. exit(EXIT_SUCCESS);