[TYPO3-mvc] blog_example - caching issues?

Ingo Renner ingo at typo3.org
Wed May 20 17:18:14 CEST 2009


Robert Lemke wrote:

Hi Robert,

> Just another thought which popped up while reading this thread: How
> about introducing a mechanism which allows you to cache a method call.
> Cache entries would be generated depending on the argument values of
> that method.
>
> Example (FLOW3 style):
>
> /**
> * @param SomeClass $someObject
> * @return string
> */
> public function showAction(SomeClass $someObject) {
> $data = $this->getSomeExpensiveData($someObject, 'xy');
> ...
> }
>
> /**
> * ...
> * @cacheable
> */
> protected function getSomeExpensiveData($someObject, $someOtherArgument) {
> return 'something';
> }
>
>
> By that some sub-operations could be cached.

That's already going in the direction I had in mind for the community 
extension. I'd need a very finegrained cache handling as the whole thing 
by its nature is quite dynamic... I'll give it some more thoughts.


best
Ingo

-- 
Ingo Renner
TYPO3 Core Developer, Release Manager TYPO3 4.2



More information about the TYPO3-project-typo3v4mvc mailing list