Hi,
Yes, I used the simple mode caching when I noticed this problem.
I disabled the plugin to see what was going to happen.
All my amp pages are in error 504 when the plugin is enabled. While only a few pages have a 504 error when it is disabled.
I don’t see where the problem can come from.