WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Conversation

@fabiankaegy
Copy link
Member

This pull request updates the caching behavior for class discovery in the framework, making it easier to disable caching in environments that do not support writable file systems. The most important changes clarify and implement a new constant, TENUP_FRAMEWORK_DISABLE_CACHE, which allows developers to skip caching regardless of environment type. Documentation has also been updated to reflect this new option.

Caching logic improvements:

  • Updated the caching condition in src/ModuleInitialization.php to support disabling cache when TENUP_FRAMEWORK_DISABLE_CACHE is set to true, in addition to skipping cache on VIP_GO_APP_ENVIRONMENT. This makes cache control more flexible for various environments.

Documentation updates:

  • Revised docs/Autoloading.md to explain that caching is now skipped when TENUP_FRAMEWORK_DISABLE_CACHE is true, and provided guidance for using this constant in environments without writable file systems.
  • Updated docs/Modules-and-Initialization.md to include TENUP_FRAMEWORK_DISABLE_CACHE as a way to disable caching, along with examples of its usage and explanation of its intended purpose.

@fabiankaegy fabiankaegy self-assigned this Nov 13, 2025
@fabiankaegy fabiankaegy mentioned this pull request Nov 13, 2025
4 tasks
@fabiankaegy
Copy link
Member Author

Closing in favor of #26

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant