Cache plugins are great. And we personally recommend Autoptimize:
https://generatepress.com/fastest-wordpress-theme/
However, they probably are the majority underlying issue for a lot of support topics we see.
Your case is a common occurrence where the cache is not cleared so new changes don’t propagate.
My simple advice is:
Do not enable them whilst developing a site.
Disable them if you’re making style or code changes to a live site.
If a new problem occurs:
Try flushing the cache. It may be old code stuck in the system.
If that don’t work – disable the Cache. It could be the code is not being cached in the order it needs to be in.
You should be able to re-enable Autoptimize now without any issue.