Hi, I'm setting up Mediawiki with Varnish and the pages are being correctly cached by Varnish, but when I edit a Mediawiki page, the cache is not purged, so the outdated page still shows to users. I even removed the acl to make varnish accept calls from any source.
In Mediawiki settings, I defined both the host (name of the docker container) as well as the docker IP, but it didn't worked.
I've added to the settings:
$wgUseCdn = true;
$wgCdnServers = ;
$wgCdnServers = "172.22.0.10";
(the docker container had the above IP at that time)
I enabled Mediawiki logs and see the error:
[squid] CdnCacheUpdate::purge: https://localhost:8443/index.php/Test_Page https://localhost:8443/index.php?title=Test_Page&action=history
[DeferredUpdates] Deferred update CdnCacheUpdate failed: Call to undefined function socket_create()
I have found no solution for undefined
socket_create() in Mediawiki.
I'm using varnish
vcl 4.0). I'm using the docker image
I don't know how to proceed and haven't found a solution.
If I try to enable sockets (
docker-php-ext-enable sockets) it shows that it's already enabled:
warning: sockets (sockets.so) is already loaded!, but from the error it seems as if it's not enabled tough.