[TYPO3-dev] Clearing cHash-specific cache

Michael Scharkow mscharkow at gmx.net
Tue Jan 3 17:51:40 CET 2006


Hi guys,

while working on a FE-plugin using cHash for caching, I need to 
selectively delete a cache for a given cHash (or piVar-combination if 
you will):

I am in edit mode for a specific record, with some piVars indicating the 
mode and the record, of course, and *after* successfully modifying the 
record, the cache should be cleared for this cHash, so that I get to see 
the updated page in single view.

I could, of course, use

tslib_fe::clearPageCacheContent_pidList($TSFE->id);

but this deletes the whole cache for the page, and I don't want to 
delete all the other cached single and list views because there's lots 
of them, and nothing changes there.

So, can I selectively delete a cHash row in the caching table? And where 
to find that row?

Greetings,
Michael




More information about the TYPO3-dev mailing list