Fixes #4877 set type to bool for cache parameter in apt module