[FEATURE] stdWrap caching
authorFabrizio Branca <mail@fabrizio-branca.de>
Sun, 26 Feb 2012 20:59:53 +0000 (21:59 +0100)
committerTolleiv Nietsch <info@tolleiv.de>
Sun, 26 Feb 2012 22:49:12 +0000 (23:49 +0100)
commitaeba39cedbbd7a1b27e882b8ac0c20c800a40965
treecfb5514f2d681fe969c956c061ec48dd802adfb0
parentec8d8af24f7646afe72bfe49d12b23d69dcd2b73
[FEATURE] stdWrap caching

Problem:
* Cacheable content is always page specific.
  Pages cannot share cached content.
* Cacheable content has no individual lifetime
  but is bound to the lifetime of the page where it is placed.

Solution:
Introduce new configuration options that will store the
content into the caching framework:

Examples:
5 = TEXT
5 {
  cache.key = mycurrenttimestamp
  cache.tags = tag_a,tag_b,tag_c
  cache.lifetime = 3600
  data = date : U
  strftime = %H:%M:%S
}

or (for page specific cache that doesn't take
other parameters into account)
5 = TEXT
5 {
  cache.key = mycurrenttimestamp_{page:id}
  cache.key.insertData = 1
}

Change-Id: Idd76f9c627a0dcb5eeb391da547ba412f8c72860
Fixes: #34299
Related: #34307
Releases: 4.7, 4.6-backports, 4.5-backports
Reviewed-on: http://review.typo3.org/9245
Reviewed-by: Philipp Gampe
Tested-by: Philipp Gampe
Reviewed-by: Tolleiv Nietsch
Tested-by: Tolleiv Nietsch
typo3/sysext/cms/tslib/class.tslib_content.php