Skip to content

EPIC: Cache Warmup #1103

@s2b

Description

@s2b

One major goal for Fluid 5 is to implement a (mostly) context-free possibility to warmup the cache of Fluid templates. Most of the road blocks are related to the caching mechanism depending on data only present during runtime/rendering of a template. Some of those have already been addressed by introducing deprecations in Fluid 4:

However, there are still some ToDos left:

  • rethink naming of cache files (partial, layout, template as prefixes; action and controller name)
  • refactor TemplatePaths API to get rid of controllerName and actionName in favor of something more reasonable, like templateName
  • refactor/deprecate existing warmup feature, which needs too much context at the moment to be used in most use cases
  • create new cache warmup command

One context information will still be necessary: The defined global ViewHelper namespaces. The reason is that both ViewHelper class names and the newly introduced ViewHelperResolver delegates are currently resolved during parse time and baked in to the cache files.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions