When trying to clear the cache in Mautic, I ran into an out of memory exception, even though the amount was requested was below the limit listed.
A quick workaround was to unlimit the memory in php (unsure if this is OK for production):
in php.ini, (my line 393):
memory_limit = -1