Plugin Directory

Changeset 2630469


Ignore:
Timestamp:
11/16/2021 05:35:32 AM (4 years ago)
Author:
devavi
Message:

Fix warning issues and test it with WP latest release

Location:
purge-varnish/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • purge-varnish/trunk/class_purge_varnish.php

    r2429177 r2630469  
    55  Description: This plugin provides integration between your wordpress site and Varnish Cache to purge cache objects automate/manaully.
    66  as per configurations or allow to purge specific URLs.
    7   Version: 2.4
     7  Version: 2.5
    88  Author: Dsingh <[email protected]>
    99  Author URI: https://profiles.wordpress.org/devavi
     
    289289    function purge_varnish_get_command($url, $flag = NULL) {
    290290        $parse_url = $this->purge_varnish_parse_url($url);
    291         $host = $parse_url['host'];
    292         $path = $parse_url['path'];
     291        $host = isset($parse_url['host']) ? $parse_url['host'] : '';
     292        $path = isset($parse_url['path']) ? $parse_url['path'] : '';
    293293        $command = "ban req.http.host == \"$host\" && req.url ~ \"^$path$\"";
    294294        if ($flag == 'front') {
  • purge-varnish/trunk/readme.txt

    r2429177 r2630469  
    44Tags: varnish, purge, cache, caching, flush, plugin, wp-cache, performance, fast, automatic
    55Requires at least: 4.0
    6 Tested up to: 5.5.3
    7 Stable tag: 1.1.1
     6Tested up to: 5.8.2
     7Stable tag: 1.1.2
    88License: GPLv2 or later
    99
Note: See TracChangeset for help on using the changeset viewer.