[TYPO3-dev] clear specified cache_pagesection

Steffen Kamper info at sk-typo3.de
Tue Jan 6 15:40:44 CET 2009


Hi,

Steffen Kamper schrieb:
> What i want is to be more specific. For example, if you change a news 
> item you only want to clear the cache for this item, not for complete 
> page. So you would like to know which entry of page_sections is the 
> right holding this view. The tag is somehow calculated with the pid ad 
> the GETvars, so i' looking for this tag. Knowing the tag makes it easy 
> to clear it with
> $GLOBALS['typo3CacheManager']->flushCachesByTag($tag)
> 

i'm a bit astonished.
I created a page with a news plugin showung list + single. I created 2 
news records. Then i called the page in FE and clicked through 3 views:
* no single - displaying list
* click on news 1 - displaying list and single view of 1
* click on news 2 - displaying list and single view of 2

Then i looked to table cache_pagesetion. I saw one entry for the page, i 
would expect 3.
The tag only respect id and MPvar calculated this way:
'pageId_' . intval($GLOBALS['TSFE']->id) . ',mpvarHash_' . 
t3lib_div::md5int($GLOBALS['TSFE']->MP)

Did i misunderstood concept of cache or why do i miss respect of GETvars 
and more entries?

vg Steffen




More information about the TYPO3-dev mailing list