CakeFest 2024: The Official CakePHP Conference

基本的な VarnishStat の使用法

共用メモリから、varnish 統計のスナップショットを取得する例を示します。

例1 統計のスナップショットを取得する

<?php

$vs
= new VarnishStat;

try {
$data = $vs->getSnapshot();
} catch (
VarnishException $e) {
echo
$e->getMessage();
exit(
3);
}

exit(
0);
?>
add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top