Why don’t trusted host settings change in my site?

I decided to change the URL of my Drupal site since it’s not secure to include the IP address in it. So in my settings.php I have:

$settings['trusted_host_patterns'] = array(
  '^forms.org$',
  '^www.forms.org$',
);

I cleared the cache using drush cr but the trusted host settings in the status report are still not updated. I even checked the permissions and everything is fine.


Go to Source of this post
Author Of this post: mins
Title Of post: Why don’t trusted host settings change in my site?
Author Link: {authorlink}