mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-12 16:14:25 +03:00
9fe573a0c5
- Simplify the `init` method in `models/index.js` so that it no longer returns a promise. Easier to use. - Eliminates the `deleteAllContent` method from `models/index.js` as it can all be handled at the API layer in a single spot. - Optimize `destroyAllContent` in `api/db.js`. Eliminates double-fetching every post from the database and converting it to JSON. Also only fetches ids from the database instead of the entire model. - Eliminates the custom static method `destroy` in the Post model in favor of handling detaching tag relations in a single place (the `destroying` event). This also eliminates a big source of unneeded database round trips--needing to get post ids to feed into `Post.destroy()` which then re-fetches the post again. |
||
---|---|---|
.. | ||
auth-strategies_spec.js | ||
authentication_spec.js | ||
cache-control_spec.js | ||
check-ssl_spec.js | ||
decide-is-admin_spec.js | ||
oauth_spec.js | ||
private-blogging_spec.js | ||
redirect-to-setup_spec.js | ||
serve-shared-file_spec.js | ||
spam-prevention_spec.js | ||
static-theme_spec.js | ||
theme-handler_spec.js | ||
uncapitalise_spec.js |