/cache/prod is disappearing after new module published

Hello everyone, I have worked with SugarCRM for many years and now it’s time to migrate su SuiteCRM. I made a new installation of the 8.0.1 and everything it’s working ok except the module builder.
I tried to publish a simple module, but after the deploy, my site it’s not working anymore. I tried to understand why and i found that the folder /cache/prod / it’s empty after the deployment. if i put the files from a backup, everything starts without problems. Has anyone ever had the same problem? i would like to find a solution.

How did you install? Did you use the full package downloaded from SuiteCRM site? Or did you pull from Github?

I have the full package downloaded. I found right now the cmd taht fix the problem:

./bin/console cache:clear

but i would like to publish new module without broken everythings every time. Am I missing something?

Have you been running a Quick Repair and Rebuild after deploying?

I can’t because after the “deploy” every page return a 500 error with the message:

Cannot autowire service “App\Install\Command\InstallExtensionAssets”: argument “$name” of method “__construct()” is type-hinted “string”, you should configure its value explicitly

I don’t know, then.

Maybe you can try connecting a debugger and stepping through that code to check which of your customizations is causing the problem…

Oh, and are you using a supported PHP version?