Skip to content

Instantly share code, notes, and snippets.

@josefglatz
Last active January 15, 2016 13:22
Show Gist options
  • Save josefglatz/869da922585702cc0257 to your computer and use it in GitHub Desktop.
Save josefglatz/869da922585702cc0257 to your computer and use it in GitHub Desktop.
TYPO3 example COA with custom caching
lib.ext.news.latestFooter = COA
lib.ext.news.latestFooter {
// define custom cache tag and lifetime
cache {
key = newsLatestFooter
tags = tx_news
lifetime = 604800
}
// any content (in this case a news latest plugin which should be rendered on many pages)
10 = CONTENT
10 {
table = tt_content
select {
max = 1
orderBy = sorting
pidInList.data = leveluid : 0
where = colPos = 3
languageField = sys_language_uid
}
}
}
[applicationContext = Production/Staging, Development*]
lib.ext.news.latestFooter {
20 = TEXT
20 {
data = date : U
strftime = %H:%M:%S
wrap = <!-- Cache Test: | -->
}
}
[global]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment