Clearing the Cache Drupal 8

Using the rebuild script. Open settings.php (/sites/default/settings.php) in any text editor. Add this line to the end of the file and save it:

$settings[‘rebuild_access’] = TRUE;

After saving visit the next link.

http://www.example.com/core/rebuild.php

In your browser (where www.example.com is your site’s URL).
After a short pause, you should be redirected to the home page of your site, and the cache should be rebuilt.
Open settings.php (/sites/default/settings.php) in a text editor.
Find the line you added with (( $settings[rebuild_access] )) remove this line, and save the file.