Plugin Directory

Changeset 2155339


Ignore:
Timestamp:
09/12/2019 07:53:04 AM (6 years ago)
Author:
runcloud
Message:

fixed uninstall drop, only remove our dropin
updated plugin page banner

Location:
runcache-purger
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • runcache-purger/trunk/runcache-purger.php

    r2155285 r2155339  
    55 * Plugin URI:      https://runcloud.io
    66 * Description:     This plugin will purge RunCloud.io NGINX fastcgi, Proxy Cache and Redis Object Cache.
    7  * Version:         1.0.8
     7 * Version:         1.0.9
    88 * Author:          RunCloud
    99 * Author URI:      https://profiles.wordpress.org/runcloud/
     
    6464
    6565    // version
    66     private static $version      = '1.0.8';
    67     private static $version_prev = '1.0.7';
     66    private static $version      = '1.0.9';
     67    private static $version_prev = '1.0.8';
    6868
    6969    // later
     
    484484    {
    485485        $file_dropin = self::get_dropin_file();
    486         if ( file_exists( $file_dropin ) ) {
     486        if ( file_exists( $file_dropin ) && defined('RUNCACHE_PURGER_DROPIN') ) {
    487487            return unlink($file_dropin);
    488488        }
  • runcache-purger/trunk/vendor/redis_is_connect.php

    r2155285 r2155339  
    11<?php
    2 // nawawi 12092019: test redis connection
    3 function __redis_is_connect($host, $port, &$error = '') {
    4     $host = ( !empty($host) ? $host : '127.0.0.1' );
    5     $port = ( !empty($port) ? (int)$port : 6379 );
     2if ( !function_exists('__redis_is_connect') ) {
     3    function __redis_is_connect($host, $port, &$error = '') {
     4        $host = ( !empty($host) ? $host : '127.0.0.1' );
     5        $port = ( !empty($port) ? (int)$port : 6379 );
    66
    7     $socket = socket_create(AF_INET, SOCK_STREAM, SOL_TCP);
    8     $ret = @socket_connect($socket, $host, $port);
    9     if ( !$ret ) {
    10         $error = socket_strerror(socket_last_error());
     7        $socket = socket_create(AF_INET, SOCK_STREAM, SOL_TCP);
     8        $ret = @socket_connect($socket, $host, $port);
     9        if ( !$ret ) {
     10            $error = socket_strerror(socket_last_error());
     11        }
     12        @socket_close($socket);
     13        return $ret;
    1114    }
    12     @socket_close($socket);
    13     return $ret;
    1415}
Note: See TracChangeset for help on using the changeset viewer.