profile

M Bytes

๐ŸŸง M Bytes #21: The Magento cache command that could break prod


by M.academyโ€‹

Hey Reader,

Last week, a dev messaged me: "I ran cache:flush instead of cache:clean on prod, and now our site's throwing errors. Why?"

This is exactly why Adobe puts this type of question on the certification exam.

On the surface, cache:clean and cache:flush seem identical. Both clear the cache and make changes visible. But one deletes from matching tags, and the other nukes the entire cache storage (including external services!).

When you flush, you are also wiping caches from OTHER applications, like Redis. Sometimes that's what you want, but it's possible it can unintendedly take down your store.

The Adobe cert exam (shameless plug: cert-prep course launch promo ends today!) is full of these "seems the same but isn't" questions:

  • cache:clean vs cache:flush
  • custom vs extension attributes
  • config:set vs env variables
  • grouped vs bundle products

These are questions designed to catch devs who memorized commands but never understood the WHY.

I just opened up a few more related lessons for the cert-prep course, check them out below ๐Ÿ‘‡

Mark Shust

Teacher / M.academy

Say hi ๐Ÿ‘‹ on LinkedIn, YouTube & Xโ€‹

Differences between cache clean and flush in Magento

One deletes by tags, the other nukes everything including shared Redis data.

Knowing the difference prevents production disasters AND nails a guaranteed exam question:

Custom vs. extension attributes in Magento

Both add data to entities, but one works directly with the core API.

Saves hours refactoring if you choose wrong:

Add a column to the Magento 2 sales order database table

Want to create an extension attribute?

This is simple... and it isn't. Learn exactly how to create one by setting up a custom database table and hooking into the core API with a plugin:

Compare configurable, grouped, and bundle products in Magento

Clients always ask "which product type should we use?"

Get this wrong and you could be rebuilding your entire catalog later:

Thank you for being a University student ๐Ÿงก

Hope you are enjoying the cert-prep course so far!

Feel free to drop over on Campus and share how your experience has been going so far. I've also asked for course platform feature requests in the Real-Time Chat space, so be sure to check that out.

โ€‹

Are you interested in learning how to use AI to write 95% of your code, but without sacrificing quality or giving up control?

If so, sign up at the Beyond Vibe Coding with Claude Code link to show your interest in this possible new initiative.

M.academyโ€‹
8940 Sassafras Cir, N. Royalton, OH 44133

โ€‹Remove me from M Bytes, remove me from everything or manage your profileโ€‹

M Bytes

Watch. Read. Apply. One topic every week.

Share this page