[TYPO3-english] Solved: Clearing cache based on cHash or any custom data

Mathias Bolt Lesniak, LiliO Design mathias at lilio.com
Thu Sep 15 20:07:06 CEST 2011


Hi Kay!

I wouldn't have anything against adding it to the core. - Just have to find an elegant solution for adding tags - and maybe clearing cache - in the Backend first. :-)


Best wishes

Mathias Bolt Lesniak
LiliO - www.lilio.no
mathias at lilio.com





On 15. sep. 2011, at 15:57, Kay Strobach wrote:

> Hi,
> 
> Would you like to add this to the core?!
> 
> I like the idea ;)
> 
> Regards
> Kay
> 
> Am 15.09.2011 15:34, schrieb Mathias Bolt Lesniak, LiliO Design:
>> Hi!
>> 
>> I have a site where FE Users can edit their profiles. The profiles can be viewed by visitors to the site. My problem has been that I have to clear the cache of all profiles if one profile is updated (because they're viewed on a single page). That's a huge amount of cache clearing (one for each FE User profile), where what you need only to clear a single cache instance. I've Googled, and seen other people fighting the same issue, so I made a solution in an extension. I called it "Easy Cache Tags", and it's available at the TER:
>> http://typo3.org/extensions/repository/view/lilio_cachetags/current/ (the manual is still rendering)
>> 
>> It requires only two lines of TypoScript, and it can be hooked into any COA, COA_INT or stdWrap, so you can make it work with pretty much any extension or custom TypoScript. To clear cache you don't even need to think about which page ID to clear the cache for, you just need to track where any record is displayed:
>> 
>>    - Insert TypoScript where a record (like an FE User) is displayed
>>    - Insert TypoScript where a record is updated.
>> 
>> The extension requires that you have the caching framework enabled, and it is also clears the cache in nc_staticfilecache if you're using it.
>> 
>> 
>> This is an alpha release, and it doesn't solve every possible problem, so feel free to e-mail me if you have any suggestions or feedback!
>> 
>> 
>> 
>> Best wishes
>> 
>> Mathias Bolt Lesniak
>> LiliO - www.lilio.no
>> mathias at lilio.com
>> 
>> 
> 
> 
> -- 
> http://www.kay-strobach.de - Open Source Rocks
> 
> TYPO3 .... inspiring people to share!
> Get involved: http://typo3.org
> 
> Answere was usefull: https://flattr.com/profile/kaystrobach
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english



More information about the TYPO3-english mailing list