Ah, It would be because the secret APP_KEY
(which is needed to make the cache) isn’t available at build-time. It’s NULL. And so that would result in errors/exceptions. So those :cache
commands need to be run when APP_KEY
is available, which is at run-time.
Check out this thread from @fideloper-fly for more: