0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-24 23:48:13 -05:00
ghost/core/server
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
..
adapters Migrated to use url-utils from Ghost-SDK (#10787) 2019-06-18 15:13:55 +02:00
api Themes controllers code extraction (#10818) 2019-07-01 16:56:23 +02:00
config 🐛 Allowed .ico files to be uploaded for icons. (#10820) 2019-07-01 13:29:24 +07:00
data Extracted frontend code from redirects API controllers (#10798) 2019-06-21 16:50:16 +02:00
lib Extracted frontend folder (#10780) 2019-06-19 11:30:28 +02:00
models Improved dynamic default options performance (#10816) 2019-07-05 15:30:29 +08:00
public Moved members static mount point to /ghost/members 2019-06-25 15:13:52 +07:00
services Update dependency got to v9 (#10861) 2019-07-04 10:36:51 +02:00
translations 🐛 Disallowed locked/suspended users from being made owner via the API (#10647) 2019-04-16 10:30:29 +01:00
views Aliased {{@blog}} as {{@site}} in the theme API 2019-01-04 12:17:32 +00:00
web Updated theme activation API to experimental 2019-07-01 10:14:03 +01:00
analytics-events.js Added event to integrations when created (#10588) 2019-03-11 15:28:17 +01:00
ghost-server.js Migrated to use url-utils from Ghost-SDK (#10787) 2019-06-18 15:13:55 +02:00
index.js Extracted settings service part manipulating routes.yaml (#10800) 2019-06-25 18:33:56 +02:00
overrides.js
update-check.js Migrated to use url-utils from Ghost-SDK (#10787) 2019-06-18 15:13:55 +02:00