Wordpress query Varnish Cache vmod package varnishapi was not found

Varnish je HTTP akcelerátor určený pro obsahově náročné dynamické webové stránky a také API. Na rozdíl od jiných webových akcelerátorů, jako je Squid, který začal žít jako mezipaměť na straně klienta, nebo Apache a nginx, což jsou primárně původní servery, byl Varnish navržen jako akcelerátor HTTP. Varnish je zaměřen výhradně na HTTP, na rozdíl od jiných proxy serverů, které často podporují FTP, SMTP a další síťové protokoly.

Projekt iniciovala online pobočka norského bulvárního deníku Verdens Gang. Architekt a hlavní vývojář je dánský nezávislý konzultant Poul-Henning Kamp (známý vývojář FreeBSD), jehož správu, infrastrukturu a další vývoj původně zajišťovala norská linuxová konzultační společnost Linpro. Podpora, správa a vývoj Varnish byly později vyčleněny do samostatné společnosti, Varnish Software.

Varnish je bezplatný software s otevřeným zdrojovým kódem, který je k dispozici pod licencí BSD se dvěma klauzulemi. Komerční podpora je dostupná mimo jiné od společnosti Varnish Software. Verze 1.0 Varnish byla vydána v roce 2006, Varnish 2.0 v roce 2008, Varnish 3.0 v roce 2011, Varnish 4.0 v roce 2014, Varnish 5.0 v roce 2016, Varnish 6.0 v březnu 2018, Varnish 7.0 v listopadu 2021.

Varnish WordPress VMOD jQuery modul

Instalace vmod-querystring

wget https://github.com/Dridi/libvmod-querystring/releases/download/v2.0.3/vmod-querystring-2.0.3.tar.gz
tar -xzf vmod-querystring-2.0.3.tar.gz
cd vmod-querystring-2.0.3.tar.gz

./configure
make

configure: error: Package requirements (varnishapi) were not met:

No package 'varnishapi' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Doinstalujeme libvarnishapi-dev

apt-get install libvarnishapi-dev

Zkusíme znovu make

make
==== libvmod-querystring 2.0.3 ====

varnish:      6.1.1
prefix:       /usr
vmoddir:      /usr/lib/x86_64-linux-gnu/varnish/vmods

compiler:     gcc
cflags:       -g -O2
ldflags:

--enable-silent-rules=
--enable-warnings=no
--enable-docs=no
--enable-lcov=no

Úspěch

make check
: vmod_querystring.man.rst vmod_querystring.3
make  check-TESTS
make[2]: Entering directory '/tmp/vmod-querystring-2.0.3/src'
make[3]: Entering directory '/tmp/vmod-querystring-2.0.3/src'
PASS: tests/e00001.vtc
PASS: tests/f00001.vtc
PASS: tests/f00002.vtc
PASS: tests/f00003.vtc
PASS: tests/f00004.vtc
PASS: tests/f00005.vtc
PASS: tests/f00006.vtc
PASS: tests/f00007.vtc
PASS: tests/f00008.vtc
PASS: tests/g00001.vtc
PASS: tests/m00001.vtc
PASS: tests/p00001.vtc
PASS: tests/p00002.vtc
PASS: tests/p00003.vtc
PASS: tests/r00022.vtc
PASS: tests/r00026.vtc
PASS: tests/w00001.vtc
============================================================================
Testsuite summary for libvmod-querystring 2.0.3
============================================================================
# TOTAL: 17
# PASS:  17
# SKIP:  0
# XFAIL: 0
# FAIL:  0
# XPASS: 0
# ERROR: 0
============================================================================
make[3]: Leaving directory '/tmp/vmod-querystring-2.0.3/src'
make[2]: Leaving directory '/tmp/vmod-querystring-2.0.3/src'
make[1]: Leaving directory '/tmp/vmod-querystring-2.0.3/src'

Test dopadl úspěšne

sudo make install

Varnish cache diagram

Jak funguje Varnish keš?

Varnish cache software diagram
Varnish cache software diagram

Užitečné

Domovská stránka Varnish software.
ISPconfig Varnish cache.

ICTIS.CZ