You are here

function varnish_admin_reports_page in Varnish 5

Same name and namespace in other branches
  1. 6 varnish.admin.inc \varnish_admin_reports_page()
  2. 7 varnish.admin.inc \varnish_admin_reports_page()

Menu callback for varnish admin settings.

1 string reference to 'varnish_admin_reports_page'
varnish_menu in ./varnish.module
Implementation of hook_menu()

File

./varnish.module, line 317
varnish.module Provide drupal hooks for integration with the Varnish control layer.

Code

function varnish_admin_reports_page() {

  // connect to varnish and do a full status report
  $status = _varnish_terminal_run('stats', 50000);
  return "<pre>{$status}</pre>";
}