Skip to content

cache-identifier for content-nodes #7

@PRGfx

Description

@PRGfx

From my understanding, the content is only cached by the name of the @process configuration, so it is not really viable to use it for normal content-elements.

I could imagine a system of configuring a custom cache identifier, i.e. passing it down to the RenderPath prototype:

@process.ajaxify = Psmb.Ajaxify:Ajaxify {
  entryIdentifier {
    ...
  }
}

with some default values:

prototype(Psmb.Ajaxify:RenderPath) {
  @class = 'Psmb\\Ajaxify\\Fusion\\RenderPathImplementation'
  entryIdentifier = Neos.Neos:DataStructure {
    node = ${node}
  }
}

and the RenderPathImplementation building the entryIdentifier from the existing key and the (non-nullable, stringified) identifier parts.

Is this a sensible approach or am I missing something and this isn't even actually necessary?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions