-
-
Notifications
You must be signed in to change notification settings - Fork 177
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a static cache for the UUID enabled check #7094
Comments
It's a bit trickier as the app instance can be cloned with new options. In that case, calling |
just my 2c... the call is executed very often and the clone probably not, right? i mean in a regular website installation. i would argue to handle the special case in the clone method. |
In my 20k pages testsuite |
I am not arguing against it. Just trying to find a good sustainable way as the clone method isn't the only way a new app object with different config option could be introduced during the same request. Not super likely outside of the unit tests, but it still has to work for those scenarios as well. |
Description
The enabled check for UUIDs is call on every creation of every UUID object. On setups with many content pages that thousands of roundtrips to the app instance can be avoided.
Adding a simple static cache here will vastly improve that.
current
proposed
kirby/src/Uuid/Uuids.php
Line 83 in a0e64e8
The text was updated successfully, but these errors were encountered: