[TYPO3-english] no_cache vs clear_cache

Vahan Amirbekyan vamirbekyan at dgfoundation.org
Sun May 3 06:57:29 CEST 2009

Hi Dmitry,
I believe you were referring to 
class.t3lib_TCEmainclear_cache($table,$uid) method.
This is though not what I had in mind at all.
Imagine you have a single page (uid = 555) that shows a single tt_news 
If your tt_news table has one million records (at least) then there will 
be one million records in the cache_pages table with 
cache_pages(page_id) = 555.
If I use class.t3lib_TCEmainclear_cache($table,$uid) method when a 
single tt_news record changes with purpose to reflect the changes in the 
FE I will clear all one million records, which is extremely stupid to do.
For this cases I am thinking of having a method that deleted from 
cache_pages table only those records that are related to modified 
tt_news record, what is possible to find on the base of 
cache_pages(hash) value, and that is why I am suggesting using a GET 

what do you think?

Dmitry Dulepov wrote:
> Hi!
> Vahan Amirbekyan wrote:
>> which api method does what you are suggesting?
> Check in t3lib/class.t3lib_tcemain.php. I do not remember the exact name.

More information about the TYPO3-english mailing list