[TYPO3-mvc] blog_example - caching issues?

Dan Osipov dosipov at phillyburbs.com
Wed May 20 20:51:35 CEST 2009


I think smart tagging of pages is the best solution. That way only the 
needed cache is cleared.

Is it up to the developer to decide how to tag pages, or should there be 
some internal method?
For example, if blog_example renders blog with UID 56, it should tag the 
page tx_blogexample_blog_56 - or something like it?

Dan Osipov
Calkins Media
http://danosipov.com/blog/

Ingo Renner wrote:
> Ingmar Schlecht wrote:
> 
> Hi Ingmar and all,
> 
>> Most piBase extensions are just read-only extensions which don't modify
>> the records in the database. With that scenario it's quite simple, the
>> cache for a page is always cleared by TCEMain when a record on the page
>> is edited.
>>
>> I think we could do the same for the persistence in Extbase: Just
>> trigger a cache clearing for the page on every record modification for
>> the PID.
> 
> wow, I fear that would be pretty insane in some situations. Let's take 
> the infamous community example again...
> Imagine a "small" community of 50k users like typo3.org, there's a page 
> displaying the profiles of the users, now whenever someone edits his 
> profile ... boom 50k pages to rerender ... probably not a good idea ;)
> 
> However, the new caching framework was brought to the core exactly for 
> these situations. Remember you can tag cache entries to in the end 
> selectively clear them. I think that's the way to go here.
> 
> 
> all the best
> Ingo
> 


More information about the TYPO3-project-typo3v4mvc mailing list