Bug #34299

stdWrap caching

Added by Fabrizio Branca almost 8 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Performance
Target version:
Start date:
2012-02-26
Due date:
% Done:

100%

TYPO3 Version:
4.7
PHP Version:
5.3
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

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:

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

See details on http://www.fabrizio-branca.de/typo3-individual-cobject-caching.html


Related issues

Related to TYPO3 Core - Bug #49329: Content caching with page data key not working Closed 2013-06-21

Associated revisions

Revision aeba39ce (diff)
Added by Fabrizio Branca almost 8 years ago

[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

Revision 4a1388ec (diff)
Added by Fabrizio Branca almost 8 years ago

[FEATURE] Add hook to stdWrap_cacheStore

In issue #34299 caching for stdWrap was introduced.

With this patch I'd like to add a hook to the cacheStore method.
Using this patch cache handling can be refined. usecases are
- reuse provided tags for page tags
- memorize lifetimes so that the pages lifetime can be limited
to the shortest stdWrap lifetime

Change-Id: I8faecc465c04810259b335a2cb30ec5a5a6ae52f
Resolves: #34343
Releases: 4.7, 4.6-backports, 4.5-backports
Reviewed-on: http://review.typo3.org/9264
Reviewed-by: Tolleiv Nietsch
Tested-by: Tolleiv Nietsch
Reviewed-by: Daniel Poetzinger
Tested-by: Daniel Poetzinger
Reviewed-by: Simon Schaufelberger
Reviewed-by: Steffen Ritter
Tested-by: Steffen Ritter

Revision b372e8ad (diff)
Added by Fabrizio Branca almost 8 years ago

[FEATURE] Add hook to stdWrap_cacheStore

In issue #34299 caching for stdWrap was introduced.

With this patch I'd like to add a hook to the cacheStore method.
Using this patch cache handling can be refined. usecases are
- reuse provided tags for page tags
- memorize lifetimes so that the pages lifetime can be limited
to the shortest stdWrap lifetime

Change-Id: I8faecc465c04810259b335a2cb30ec5a5a6ae52f
Resolves: #34343
Releases: 4.7, 4.6-backports, 4.5-backports
Reviewed-on: http://review.typo3.org/9611
Reviewed-by: Steffen Ritter
Tested-by: Steffen Ritter

History

#1 Updated by Gerrit Code Review almost 8 years ago

  • Status changed from New to Under Review

Patch set 1 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/9241

#2 Updated by Gerrit Code Review almost 8 years ago

Patch set 1 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/9245

#3 Updated by Gerrit Code Review almost 8 years ago

Patch set 2 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/9245

#4 Updated by Gerrit Code Review almost 8 years ago

Patch set 3 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/9245

#5 Updated by Gerrit Code Review almost 8 years ago

Patch set 1 for branch TYPO3_4-6 has been pushed to the review server.
It is available at http://review.typo3.org/9249

#6 Updated by Gerrit Code Review almost 8 years ago

Patch set 1 for branch TYPO3_4-5 has been pushed to the review server.
It is available at http://review.typo3.org/9251

#7 Updated by Fabrizio Branca almost 8 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100

#8 Updated by Riccardo De Contardi over 2 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF