Skip to content

Instantly share code, notes, and snippets.

@aertmann
Created July 20, 2015 18:54
Show Gist options
  • Select an option

  • Save aertmann/f1f5be26a1bc2205cc7a to your computer and use it in GitHub Desktop.

Select an option

Save aertmann/f1f5be26a1bc2205cc7a to your computer and use it in GitHub Desktop.
Neos – Cache parts of page that are reused across pages
page.head.stylesheets {
main = TYPO3.TypoScript:Tag {
tagName = 'link'
attributes {
rel = 'stylesheet'
href = TYPO3.TypoScript:ResourceUri {
package = 'Acme.Demo'
path = 'Styles/Main.min.css'
}
}
}
backend = TYPO3.TypoScript:Tag {
tagName = 'link'
attributes {
rel = 'stylesheet'
href = TYPO3.TypoScript:ResourceUri {
package = 'Acme.Demo'
path = 'Styles/Backend.css'
}
}
@if.onlyRenderWhenNotInLiveWorkspace = ${node.context.workspace.name != 'live'}
}
@cache {
mode = 'cached'
entryIdentifier {
identifier = 'stylesheets'
workspace = ${node.context.workspace.name}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment