[TYPO3-core] RFC: #8515: Speed up tslib_cObj->getTreeList by caching its results
Michael Stucki
michael at typo3.org
Tue Jul 15 12:02:35 CEST 2008
Dmitry Dulepov [typo3] wrote:
> My main concern is that it will create lots of entries when they are not
> really needed by site owner. I am thinking purely of myself right now. I
> would not want extra table similar to cache_hash with thousands of entries
> taking most database space. 100% imho...
So how about using cache_hash then? I just thought about the same today, so
good to see it in your post, too.
cache_hash uses a combined key of hash and type identifier which can be any
action like those for example:
- PAGES_TSconfig
- TMPL CONDITIONS - ALL
- MENUDATA
- FE_TREELIST (proposal for new key)
etc.
The reason behind that is that I think we will need a similar cache for
t3lib_pageSelect::getRootLine() and similar functions soon.
A possible compromise for Dmitrys doubts could be implemented by a
configuration setting of hash types which are never cached, e.g.
$TYPO3_CONF_VARS[SYS][skipHashTypes] = MENUDATA,FE_TREELIST
What do you think?
- michael
--
Use a newsreader! Check out
http://typo3.org/community/mailing-lists/use-a-news-reader/
More information about the TYPO3-team-core
mailing list