I changed the configuration of the application and deployed the new code to production server. Since the application does not parse the configuration files and use precompiled c
To clear the cache and instantly access the data my fix is
sudo app/console cache:clear --env=prod --no-warmup --no-debug
using this command turns off debug, and doesn't have a warmup time before the data is accessible again