switch ($entityName) { case Shopware\Models\Article\Price::
class:
$cacheIds[] = 'a' .
$entity->
getArticle()->
getId();
break;
case Shopware\Models\Article\Article::
class:
$cacheIds[] = 'a' .
$entity->
getId();
break;
case Shopware\Models\Article\Detail::
class:
$cacheIds[] = 'a' .
$entity->
getArticleId();
break;
case Shopware\Models\Category\Category::
class:
$cacheIds[] = 'c' .
$entity->
getId();
break;
case Shopware\Models\Blog\Blog::
class:
case Shopware\Models\Banner\Banner::
class:
$cacheIds[] = 'c' .
$entity->
getCategoryId();
break;