[TYPO3-mvc] Caching implemented

Bastian Waidelich bastian at typo3.org
Wed Jul 15 11:13:44 CEST 2009


Sebastian KurfŸürst wrote:

Hi Sebastian,

> it seems I still had an error, and the cache is being cleared for MM 
> tables as well (which is of course wrong).

Why is this wrong?
If I display a list of posts and their authors (mm-relation) I'd want 
the cache to be cleared if an author was added/removed to/from a post, no?

One tiny issue I found in removeRow()

$this->clearPageCache($tableName, $uid);
$returnValue = $this->databaseHandle->sql_query($sqlString);
return $returnValue;

-> the cache is cleared before the $row is actually removed. Practically 
this will probably never be a problem, but it's not consistent, so I'd 
simply switch the statements - or was there a particular reason for 
doing it that way here?

Otherwise everything looks smooth! Except, that we can't use tcemain in 
the frontend and thus pre- and posthooks are not triggered.

Bastian


More information about the TYPO3-project-typo3v4mvc mailing list