Ipstenu / varnish-http-purge

Proxy Cache Purge
Apache License 2.0
46 stars 48 forks source link

Fix fetching from site_option rather than option #99

Closed jespervnielsen closed 1 year ago

jespervnielsen commented 1 year ago

The option "vhp_varnish_max_posts_before_all" is by default set via set_site_option but it is fetched via "get_option"

On multisites, this will always be empty, and we end up invalidating all cache on each post update in the multisite, since max_posts always will be lower than the countet urls.