Skip to content

Commit 1737584

Browse files
committed
docs: add Config caching code as comments
1 parent a705f9f commit 1737584

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

public/index.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,11 @@
4848
define('ENVIRONMENT', env('CI_ENVIRONMENT', 'production'));
4949
}
5050

51+
// Load Config Cache
52+
// $factoriesCache = new \CodeIgniter\Cache\FactoriesCache();
53+
// $factoriesCache->load('config');
54+
// ^^^ Uncomment these lines if you want to use Config Caching.
55+
5156
/*
5257
* ---------------------------------------------------------------
5358
* GRAB OUR CODEIGNITER INSTANCE
@@ -73,6 +78,10 @@
7378

7479
$app->run();
7580

81+
// Save Config Cache
82+
// $factoriesCache->save('config');
83+
// ^^^ Uncomment this line if you want to use Config Caching.
84+
7685
// Exits the application, setting the exit code for CLI-based applications
7786
// that might be watching.
7887
exit(EXIT_SUCCESS);

0 commit comments

Comments
 (0)