Skip to content

Commit

Permalink
docs: add Config caching code as comments
Browse files Browse the repository at this point in the history
  • Loading branch information
kenjis committed Aug 16, 2023
1 parent b01bb38 commit 47af9c0
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions public/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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);

0 comments on commit 47af9c0

Please sign in to comment.