[TYPO3-dev] set_no_cache is bad. What's next?

Ernesto Baschny [cron IT] ernst at cron-it.de
Mon Apr 2 13:24:01 CEST 2007


Martin Kutschker wrote: on 01.04.2007 22:08:

>> Ok, here i have a question for a special case, and alos an example,
>> that shows the difficults of right caching:
>>
>> On a list-view with a form, that filters the records, what is the best
>> technique that the search results will be cached ?

> Store the search result somewhere. Possible locations are the session or
> a table. If you use a table you can share the results of popular
> searches across sessions.
> 
> I thought about creating this for the indexed search. and I even thought
> about making a framework for other extensions. Maybe this is something
> for ECT?

Yes, that would be definitively a huge performance boost. Especially for
browsing through pages in a search result list and have that search
results already cached.

So go for it, Martin! :)

Basically we need something like cache_hash "enhanced" where we also
count "hits", "last used timestamp", so that we can automatically clean
up old or unused cache entries and just keep the "fresh" and "mostly
used" stuff in cache. This doesn't need to be specific for search
results, but for any information that we might want to cache, but where
we don't want the risk of polluting our tables with infinite number of
entries.

Cheers,
Ernesto




More information about the TYPO3-dev mailing list