Skip to content
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

Traduction de cached-components.md #29

Merged
merged 5 commits into from
Oct 31, 2017
Merged

Traduction de cached-components.md #29

merged 5 commits into from
Oct 31, 2017

Conversation

MachinisteWeb
Copy link
Member

Une toute nouvelle page :)


> Although Vue's SSR is quite fast, it can't match the performance of pure string-based templating due to the cost of creating component instances and Virtual DOM nodes. In cases where SSR performance is critical, wisely leveraging caching strategies can greatly improve response time and reduce server load.
> Bien que le rendu côté serveur de Vue soit rapide, il ne rivalise pas avec les performances d'un template basé sur une chaine de caractère pure, et ceux, à cause du coût de création des instances de composant et des nœuds du DOM virtuel. Dans le cas où les performances du rendu côté serveur est critique, mettre en place une bonne stratégie de mise en cache peut grandement améliorer le temps de réponse et réduire la charge serveur.
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"à cause du cout"

Signed-off-by: Bruno Lesieur <[email protected]>
Copy link

@forresst forresst left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Quelques erreurs et remarques

@@ -1,26 +1,27 @@
---
title: Caching Components
description: How to cache components?
title: Composants avec cache

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Composants avec cache => Mettre en cache les composants

## Utilisation

- Ajoutez la dépendance `@nuxtjs/component-cache` en utilisant Yarn ou npm pour votre projet.
- Ajoutez `@nuxtjs/component-cache` to `modules` section of `nuxt.config.js`.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ajoutez @nuxtjs/component-cache to à la section modules section of de nuxt.config.js.


- Les composants à mettre en cache **doivent définir une option `name` unique**.
- Vous **NE** devez ***PAS*** mettre en cache un composant si
- ses composants enfants sont liés à ur état global ou si

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ses composants enfants sont liés à ur état global ou si => ses composants enfants sont liés à l'état global

@MachinisteWeb
Copy link
Member Author

Merci @forresst et @rspt pour votre réactivité !

Signed-off-by: Bruno Lesieur <[email protected]>
Signed-off-by: Bruno Lesieur <[email protected]>
@MachinisteWeb MachinisteWeb merged commit 3bff28b into working Oct 31, 2017
@MachinisteWeb MachinisteWeb deleted the cache branch October 31, 2017 09:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants