Welcome Guest, Not a member yet? Register   Sign In
Optimize.php make a problem cached
#1

Hello CI Team,
I recently discovered an issue or something to clarify in the CI 4.5.1 documentation. If the options in the Optimize.php file are set to "TRUE," then the changes made in the Email.php file (SMTP server, etc.) are no longer taken into account. Therefore, the factory caches need to be regenerated. Hope this helps Wink
Reply
#2

It is documented.
If you think that the current explanation is difficult or misleading, feel free to send a PR to improve the documentation.

Quote:Using this feature when the prerequisites are not met will prevent CodeIgniter from operating properly. Do not use this feature in such cases.

To use this feature, the properties of all Config objects instantiated in Factories must not be modified after instantiation. Put another way, the Config classes must be an immutable or readonly classes.

Simply put, all Config instances held by Factories are cached immediately prior to shutdown, and the cached instances are used permanently.

https://codeigniter4.github.io/CodeIgnit...ig-caching
Reply
#3

(05-07-2024, 01:04 AM)kenjis Wrote: It is documented.
If you think that the current explanation is difficult or misleading, feel free to send a PR to improve the documentation.

Quote:Using this feature when the prerequisites are not met will prevent CodeIgniter from operating properly. Do not use this feature in such cases.

To use this feature, the properties of all Config objects instantiated in Factories must not be modified after instantiation. Put another way, the Config classes must be an immutable or readonly classes.

Simply put, all Config instances held by Factories are cached immediately prior to shutdown, and the cached instances are used permanently.

https://codeigniter4.github.io/CodeIgnit...ig-caching

Hello, i dont have see this, I think you should put it in an orange hazard square.
Dear Florian
Reply
#4

I sent a PR to add notes: https://github.com/codeigniter4/CodeIgniter4/pull/8877
Reply
#5

(05-08-2024, 07:45 PM)kenjis Wrote: I sent a PR to add notes: https://github.com/codeigniter4/CodeIgniter4/pull/8877

Nice, thanks you <3
Reply




Theme © iAndrew 2016 - Forum software by © MyBB