-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perf: add config Optimize and move $configCacheEnabled
The Cache Config class that extends BaseConfig is very slow to instantiate.. See #8558 (comment)
- Loading branch information
Showing
4 changed files
with
27 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?php | ||
|
||
namespace Config; | ||
|
||
/** | ||
* Optimization Configuration. | ||
* | ||
* NOTE: This class does not extend BaseConfig for performance reasons. | ||
* So you cannot replace the property values with Environment Variables. | ||
* | ||
* @immutable | ||
*/ | ||
class Optimize | ||
{ | ||
/** | ||
* -------------------------------------------------------------------------- | ||
* Config Caching | ||
* -------------------------------------------------------------------------- | ||
* | ||
* @see https://codeigniter.com/user_guide/concepts/factories.html#config-caching | ||
*/ | ||
public bool $configCacheEnabled = false; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters