Ghost/core
Fabien O'Carroll 90bb40ed80
Improved dynamic default options performance (#10816)
closes #10789

* Updated keypair generation to use a memoised fn

This allows us to embed the members dynamic defaults in the object at
definition, and will allow us to only create the keypair when we need
it, in future.

* Added getDefaultValue fn to default setting obj

This will allow us to generate the default values when they're needed
rather than at boot time.

* Ensured dynamic defaults only generated when used

This replaces all the dynamic default values with functions to return
the values, and then calls (if required) that function inside the
getDefaultValue method of the setting object.
2019-07-05 15:30:29 +08:00
..
client@836f36d873 Updated Ghost-Admin to 2.25.4 2019-07-01 13:31:22 +07:00
frontend Themes controllers code extraction (#10818) 2019-07-01 16:56:23 +02:00
server Improved dynamic default options performance (#10816) 2019-07-05 15:30:29 +08:00
test Corrected regression test for dynamic routing 2019-07-04 15:43:19 +02:00
index.js