It seems in your prod env you are using app/AppCache.php
instead of app/AppKernel.php
So, in short if you want to handle it yourself switch back to app/AppKernel.php
in your web/app.php
require_once __DIR__.'/../app/AppKernel.php';
//require_once __DIR__.'/../app/AppCache.php';
$kernel = new AppKernel('prod', false);
$kernel->loadClassCache();
//$kernel = new AppCache($kernel);
In details you should read about Symfony http cache