Кэширование в MODx Revolution

modx community, “Caching in MODx Revolution”, public translation into Russian from English More about this translation.

See also 80 similar translations

Translate into another language.

Participants

bullder517 points
Naman13 points
Sharifu9 points
And others...
Join Translated.by to translate! If you already have a Translated.by account, please sign in.
If you do not want to register an account, you can sign in with OpenID.
Pages: ← previous Ctrl next next untranslated
1 2

Caching in MODx Revolution

Кэширование в MODx Revolution

History of edits (Latest: bullder 2 years, 10 months ago) §

Caching

Кэширование

History of edits (Latest: bullder 2 years, 10 months ago) §

There are many different caching features in Revolution. Different aspects of the caching can be extended with user-defined classes, so it is possible to implement different kinds of features in custom component cache mechanisms (i.e. where you cache your own custom data), just not throughout the entire core.

Есть много возможностей кэширования в Revolution. Различные аспекты кэширования могут быть расширены с помощью пользовательских классов, таким образом можно осуществить различные механимы кеширования в пользовательских компонентах (например, когда вы кэшируете ваши собственные данные), а не только для всего ядра.

History of edits (Latest: bullder 2 years, 10 months ago) §

How is Caching Done in Revolution?

Как кэширование реализовано в Revolution?

History of edits (Latest: bullder 2 years, 10 months ago) §

First, lets take a look at all of the things in the core/cache/ directory of Revolution (or core/cache/MODX_CONFIG_KEY/ if you have that set to something other than 'config')

Во-первых, давайте взглянем на все эти вещи в директории Revolution core/cache/ (или core/cache/MODX_CONFIG_KEY/ если, при установке, вы установили значение "config key" отличное от 'config')

History of edits (Latest: Naman 2 years ago) §

— если вы настроили что то другое, чем установлено в конфигурации... не пойдёт AFenics

Configuration Cache

Конфигурация кэша

History of edits (Latest: bullder 2 years, 10 months ago) §

In the root you will find the config.cache.php which contains the system settings which are loaded on any request.

В корне директории вы найдёте файл config.cache.php который содержит системные настройки, которые загружаються при каждом запросе.

History of edits (Latest: Naman 2 years ago) §

— ...системные настройки, загружающиеся при любом(каждом) запросе.  AFenics

Context Configuration, Event Map, and Plugin Caching

Конфигурация контекста, карта событий и плагин кэширования

History of edits (Latest: bullder 2 years, 10 months ago) §

In a subdirectory for each context (i.e. web/ or mgr/ or connector/) you will find a context.cache.php file containing the context settings, a plugin event map for the context, and the plugin elements that are registered in the event map.

В поддиректории для каждого контекста (например, web/ или mgr/ или connector/) вы найдёте файл context.cache.php, содержащий настройки контекста, плагин карты событий для контекста, и плагин элементов зарегестрированных в карте событий.

History of edits (Latest: bullder 2 years, 10 months ago) §

Resource (Partial-Page) Caching

Кэширование ресурсов (Частей страниц)

History of edits (Latest: bullder 2 years, 10 months ago) §

Within the web context (or another custom front-end context) there will be a subdirectory for resources/ containing files like 1.cache.php where the 1 represents the id of the resource. These files contain the resource object as well as any cached element output used by the resource.

В веб-контексте (или любом другом фронтэнд контексте) будут подкаталоги для ресурсов содержащих файлы типа 1.cache.php, где 1 представляет собой идентификатор ресурса. Эти файлы содержат ресурсный объект, а также любые кэшируемые элементы используемые в ресурсах.

History of edits (Latest: bullder 2 years, 10 months ago) §

Element Caching

Кэширование элементов

History of edits (Latest: bullder 2 years, 10 months ago) §

Within each context you will also find an elements/ subdirectory containing cache files for various kinds of elements (especially snippets and plugins). These contain various kinds of cache files which the element classes make use of when they are being processed. For instance, snippets and plugins both cache a generated global function which is included and made available at runtime.

В каждом контексте вы также можете найти поддиректорию elements/ содержащую кэш файлы для различных типов элементов (в частности сниппеты и плагины). Они содержат различные виды кэш файлов, которые использыуються элементами класса в процессе обработки. Например, кэш сниппетов и плагинов генерирует глобальная функция, которая включена и доступна в процессе выполнения.

History of edits (Latest: bullder 2 years, 10 months ago) §

xPDO Object and Database Result Set Caching

Объекты xPDO и кэширование ответов базы данных

History of edits (Latest: bullder 2 years, 10 months ago) §

If you enable this, xPDO can cache query result sets representing any objects and collections in the objects subdirectory. This can be enabled in environments where database access is more expensive than PHP include time. This is separate from all of the other caching mechanisms which are very specific to the operation of MODx.

Если вы включите это, xPDO может кэшировать ответы на запросы базы данных, представляющие какие либо объекты и коллекции объектов в каком либо подмножестве. Это может быть активированно в окружении, где доступ к базе данных более затратен, чем выполнение PHP скрипта. Этот механизм независим от всех остальных механизмов кэширования, который очень специфичен для остального функционала MODx.

History of edits (Latest: AFenics 2 years, 9 months ago) §
Pages: ← previous Ctrl next next untranslated
1 2