/**
* Clear cache for all temlates assigned to playlist.
*
* @param Playlist $playlist
*/
public function clearPlaylistTemplates($playlist)
{
foreach ($playlist->getThemes() as $theme) {
if (is_array($theme)) {
foreach ($theme as $file) {
\TemplateCacheHandler_DB::clean($file);
}
}
}
}