You are here

constant RenderCache::RENDER_CACHE_STRATEGY_DIRECT_RENDER in Render cache 7.2

Indicates that the item should be rendered before it is cached.

If there is code that needs to change some properties, the 'render_cache_preserve_properties' can be used.

This is used for example to preserve page_footer / page_top properties for #theme => html.

3 uses of RenderCache::RENDER_CACHE_STRATEGY_DIRECT_RENDER
PageController::getDefaultCacheInfo in modules/controller/render_cache_page/src/RenderCache/Controller/PageController.php
Provides the cache info for all objects based on the context.
RenderStackTest::test_processPostRenderCache in tests/src/Cache/RenderStackTest.php
@covers ::processPostRenderCache()
RenderStackTest::test_processPostRenderCache_recursive in tests/src/Cache/RenderStackTest.php
@covers ::processPostRenderCache()

File

lib/RenderCache.php, line 32
Contains RenderCache

Class

RenderCache
Static Service Container wrapper wrapping Drupal class.

Code

const RENDER_CACHE_STRATEGY_DIRECT_RENDER = 1;