mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-26 06:15:19 +08:00
typo fixes [skip ci]
This commit is contained in:
@ -5,7 +5,7 @@ El caché de páginas se refiere a guardar el contenido de toda una página en e
|
||||
Posteriormente, cuando la misma página sea requerida de nuevo, su contenido será devuelto desde el caché en vez de
|
||||
volver a generarlo desde cero.
|
||||
|
||||
El almacenamiento en caché de páginas está soportado por [[yii\filters\PageCache]], un [filtro de acción](runtime-filtering.md).
|
||||
El almacenamiento en caché de páginas está soportado por [[yii\filters\PageCache]], un [filtro de acción](structure-filters.md).
|
||||
Puede ser utilizado de la siguiente forma en un controlador:
|
||||
|
||||
```php
|
||||
@ -35,7 +35,7 @@ artículos ha cambiado.
|
||||
|
||||
Como puedes ver, el caché de páginas es muy similar al [caché de fragmentos](caching-fragment.md). Ambos soportan opciones
|
||||
tales como `duration`, `dependencies`, `variations`, y `enabled`. Su principal diferencia es que el caché de páginas es
|
||||
implementado como un [filtro de acción](runtime-filtering.md) mientras que el caché de fragmentos se hace en un [widget](structure-widgets.md).
|
||||
implementado como un [filtro de acción](structure-filters.md) mientras que el caché de fragmentos se hace en un [widget](structure-widgets.md).
|
||||
|
||||
Puedes usar el [caché de fragmentos](caching-fragment.md) así como [contenido dinámico](caching-fragment.md#dynamic-content)
|
||||
junto con el caché de páginas.
|
||||
|
@ -323,7 +323,7 @@ public function behaviors()
|
||||
}
|
||||
```
|
||||
|
||||
Consulta la sección [Filtrando](runtime-filtering.md) para una mayor información acerca del tema.
|
||||
Consulta la sección [Filtrando](structure-filters.md) para una mayor información acerca del tema.
|
||||
|
||||
|
||||
Assets
|
||||
|
@ -368,7 +368,7 @@ public function behaviors()
|
||||
}
|
||||
```
|
||||
|
||||
Por favor consulte a seção [Filtering](runtime-filtering.md) para mais detalhes.
|
||||
Por favor consulte a seção [Filtering](structure-filters.md) para mais detalhes.
|
||||
|
||||
|
||||
Assets
|
||||
|
@ -4,7 +4,7 @@
|
||||
Кэширование страниц — это кэширование всего содержимого страницы на стороне сервера. Позже когда эта страница
|
||||
будет снова запрошена, сервер вернет её из кэша вместо того что бы генерировать её заново.
|
||||
|
||||
Кэширование страниц осуществляется при помощи [[yii\filters\PageCache]] и [фильтра действия](runtime-filtering.md).
|
||||
Кэширование страниц осуществляется при помощи [[yii\filters\PageCache]] и [фильтра действия](structure-filters.md).
|
||||
Это может быть использовано в классе контроллера как показано ниже:
|
||||
|
||||
```php
|
||||
@ -34,7 +34,7 @@ public function behaviors()
|
||||
Как вы можете видеть, кэширование страниц очень похоже на [кэширования фрагмента](caching-fragment.md). Оба этих варианта
|
||||
поддерживают параметры: `duration` (продолжительность), `dependencies` (зависимости), `variations` (вариации), и `enabled`
|
||||
(включения). Их главное отличие заключается в том что кэширования страницы реализована как
|
||||
[фильтр действия](runtime-filtering.md) а кэширования фрагмента как [виджет](structure-widgets.md).
|
||||
[фильтр действия](structure-filters.md) а кэширования фрагмента как [виджет](structure-widgets.md).
|
||||
|
||||
Вы можете использовать [кэширования фрагмента](caching-fragment.md), a также
|
||||
[динамический контент](caching-fragment.md#dynamic-content) вместе с кэшированием страницы.
|
||||
|
@ -4,7 +4,7 @@ Page Caching
|
||||
Page caching refers to caching the content of a whole page on the server side. Later when the same page
|
||||
is requested again, its content will be served from the cache instead of regenerating it from scratch.
|
||||
|
||||
Page caching is supported by [[yii\filters\PageCache]], an [action filter](runtime-filtering.md).
|
||||
Page caching is supported by [[yii\filters\PageCache]], an [action filter](structure-filters.md).
|
||||
It can be used like the following in a controller class:
|
||||
|
||||
```php
|
||||
@ -33,7 +33,7 @@ and the cached page should be invalidated if the total number of posts is change
|
||||
|
||||
As you can see, page caching is very similar to [fragment caching](caching-fragment.md). They both support options such
|
||||
as `duration`, `dependencies`, `variations`, and `enabled`. Their main difference is that page caching is
|
||||
implemented as an [action filter](runtime-filtering.md) while fragment caching a [widget](structure-widgets.md).
|
||||
implemented as an [action filter](structure-filters.md) while fragment caching a [widget](structure-widgets.md).
|
||||
|
||||
You can use [fragment caching](caching-fragment.md) as well as [dynamic content](caching-fragment.md#dynamic-content)
|
||||
together with page caching.
|
||||
|
@ -47,7 +47,7 @@ public function actionView($id)
|
||||
|
||||
## Filters <a name="filters"></a>
|
||||
|
||||
Most RESTful API features provided by [[yii\rest\Controller]] are implemented in terms of [filters](runtime-filtering.md).
|
||||
Most RESTful API features provided by [[yii\rest\Controller]] are implemented in terms of [filters](structure-filters.md).
|
||||
In particular, the following filters will be executed in the order they are listed:
|
||||
|
||||
* [[yii\filters\ContentNegotiator|contentNegotiator]]: supports content negotiation, to be explained in
|
||||
|
Reference in New Issue
Block a user