This clear all cache function works similar to the cache clearing in the backend but follows a more straight ahead approach and the according backend hooks are not executed.
This method can throw a fatal error if some broken extension is loaded. If you get a white page or a PHP error message, check your system with the broken extension test below.