When deploying the update from Magento 2.3.4-p2 to 2.3.5-p2 the cache:flush command does not work. As error message I get Class Magento\GoogleShoppingAds\Model\Cache\Type does not exist. I checked that and actually this class is removed during the update. Only possible way to get the deployment to work was to disable all caches, then deploy and after flushing the caches enabling them again. Did anyone have a similar problem and a better solution?

  • Remove cache using command line (rm -rf var/cache/* var/page_cache/*), flush redis cache
    – Sohel Rana
    Aug 20, 2020 at 12:12
  • @ChandreshChauhan, it's never a good idea to change anything manually in the vendor folder in my eyes. This way you completely destroy the logic of composer and this will definitely lead to compatibility issue using an old version of a module... Aug 21, 2020 at 13:32
  • be sure to clear any redis system cache after upgrade.
    – paj
    Sep 3, 2020 at 14:46

1 Answer 1


I had the same problem when upgrading from 2.3.5-p1 to 2.3.5-p2, even when the deployment included disabling the Magento_GoogleShoppingAds module in config.php.

In my case the solution was to flush Redis cache right before the deployment.

  • damn, I knew it was Redis. Just wanted to google it while waiting on the command output.Update: it worked :) Thanks. Mar 21, 2021 at 9:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.