CLPGithub yazdı:
On all wordpress sites and all cloudpanel servers, the admin bar purge > entire cache button returns a wordpress 'There has been a critical error on this website' page. The 'Purge entire cache' button in the CLP Varnish Cache settings page works fine, but not the admin bar. Issue has been present for the last few weeks. clicking Back successfully return to the the previous page before the wordpress error page.Source: https://github.com/cloudpanel-io/cloudpanel-ce/issues/735
Fatal WordPress Error fix
Resolves fatal WordPress errors (#15) raised by calling get_current_user() too early in the request lifecycle.

Moved $this->check_entire_cache_purge() into an admin_init action.
I have verified that this fix works on one of our staging sites.
I'm aware of the open PR (16) that that resolves this, however, this PR fixes the problem without any additional functionality changes.
I'm happy to be responsive on this, as getting this fix through would be great for us!
Source: https://github.com/cloudpanel-io/clp-wp-varnish-cache/pull/17