Plugin Directory

Changeset 3238320


Ignore:
Timestamp:
02/11/2025 06:30:34 AM (14 months ago)
Author:
creativform
Message:

8.8.4

  • Removed PHP errors in regular versions
  • Removed obsolete code
  • Fixed cache problems
Location:
cf-geoplugin
Files:
503 added
8 edited

Legend:

Unmodified
Added
Removed
  • cf-geoplugin/trunk/CHANGELOG.txt

    r3238154 r3238320  
    11== Changelog ==
     2
     3= 8.8.4 =
     4* Removed PHP errors in regular versions
     5* Removed obsolete code
     6* Fixed cache problems
    27
    38= 8.8.3 =
  • cf-geoplugin/trunk/cf-geoplugin.php

    r3238154 r3238320  
    88 * Plugin URI:        https://wpgeocontroller.com/
    99 * Description:       Unlock the power of location-based functionality of WordPress – The ultimate all-in-one geolocation plugin for WordPress.
    10  * Version:           8.8.3
     10 * Version:           8.8.4
    1111 * Requires at least: 6.0
    1212 * Requires PHP:      7.0
  • cf-geoplugin/trunk/inc/classes/Cache_DB.php

    r3238154 r3238320  
    267267            array(
    268268                '.',
     269                ',',
     270                ';',
    269271                "\s",
    270272                "\t",
     
    276278            array(
    277279                '_',
     280                '_',
     281                '_',
    278282                '-',
    279283                '-',
    280284                '-',
    281285                '-',
    282                 '_',
     286                '-',
    283287                '_'
    284288            ),
  • cf-geoplugin/trunk/inc/classes/Library.php

    r2865334 r3238320  
    197197            $country_data = $data;
    198198            if( !empty($data) ) {
    199                 CFGP_DB_Cache::set('library/get_countries', $data, DAY_IN_SECONDS);
     199                CFGP_DB_Cache::set('library/get_countries', $data, YEAR_IN_SECONDS);
    200200            }
    201201           
     
    302302            $regions_data[$countries] = $data;
    303303            if( !empty($data) ) {
    304                 CFGP_DB_Cache::set('library/get_regions/' . $countries, $data, HOUR_IN_SECONDS);
     304                CFGP_DB_Cache::set('library/get_regions/' . $countries, $data, YEAR_IN_SECONDS);
    305305            }
    306306           
     
    406406            $cities_data[$countries] = $data;
    407407            if( !empty($data) ) {
    408                 CFGP_DB_Cache::set('library/get_cities/' . $countries, $data, HOUR_IN_SECONDS);
     408                CFGP_DB_Cache::set('library/get_cities/' . $countries, $data, YEAR_IN_SECONDS);
    409409            }
    410410           
  • cf-geoplugin/trunk/inc/classes/License.php

    r3230991 r3238320  
    410410            PHP_QUERY_RFC3986
    411411        );
    412 var_dump($request_url);
     412
    413413        $response = CFGP_U::curl_get( CFGP_Defaults::falback_api_endpoints( $request_url ) );
    414414
     
    494494       
    495495        $response = CFGP_U::curl_get( $request_url );
    496     /*
    497         if(empty($response)){
    498             CFGP_DB_Cache::delete('cfgp-license-response-success');
    499             CFGP_DB_Cache::set('cfgp-license-response-errors', array(
    500                 'no_connection' => array(
    501                     __('Unable to connect to server.', 'cf-geoplugin')
    502                 )
    503             ), DAY_IN_SECONDS);
    504             return false;
    505         }
    506     */
    507         /**
    508         if( isset( $response['error'] ) && $response['error'] == true )
    509         {
    510             CFGP_DB_Cache::delete('cfgp-license-response-success');
    511             CFGP_DB_Cache::set('cfgp-license-response-errors', (isset($response['errors']) ? $response['errors'] : array(
    512                 'api_error' => array(
    513                     $response['message']
    514                 )
    515             )), DAY_IN_SECONDS);
    516             return false;
    517         }
    518         else
    519         {
    520             // Clear responses if exists
    521             CFGP_DB_Cache::delete('cfgp-license-response-errors');
    522             CFGP_DB_Cache::delete('cfgp-license-response-success');
    523             // Clear license
    524             self::set(CFGP_Defaults::LICENSE);
    525             CFGP_DB_Cache::set('cfgp-license-response-success', $response['message'], DAY_IN_SECONDS);
    526             // Clear special API cache
    527             CFGP_API::remove_cache();
    528             return true;
    529         }
    530         **/
    531496       
    532497        /*
  • cf-geoplugin/trunk/inc/classes/Shortcodes.php

    r3238154 r3238320  
    19651965            'version',
    19661966            'error_message',
    1967             'error'
     1967            'error',
     1968            'gps',
     1969            'latitude',
     1970            'longitude',
     1971            'browser',
     1972            'browser_version',
     1973            'platform'
    19681974        ], $shortcode, $content, $options)) !== false ) {
    19691975            return $content;
  • cf-geoplugin/trunk/inc/classes/Utilities.php

    r3203253 r3238320  
    505505        }
    506506*/
     507
     508        // Flush LS Cache
     509        if ( class_exists('\LiteSpeed\Purge', false) ) {
     510            \LiteSpeed\Purge::purge_all();
     511        } else if (has_action('litespeed_purge_all')) {
     512            do_action( 'litespeed_purge_all' );
     513        } else if (function_exists('liteSpeed_purge_all')) {
     514            litespeed_purge_all();
     515        }
     516
    507517        // WP Super Cache
    508518        if(function_exists( 'prune_super_cache' ) && function_exists( 'get_supercache_dir' )) {
     
    514524            clear_site_cache();
    515525        }
    516 
    517         // Clean stanrad WP cache
    518         if($post && function_exists('clean_post_cache')) {
    519             clean_post_cache( $post );
     526       
     527        // Clean Pagely cache
     528        if ( class_exists( 'PagelyCachePurge', false ) ) {
     529            (new PagelyCachePurge())->purgeAll();
     530            return true;
     531        }
     532       
     533        // Clean Hyper Cache
     534        if (function_exists('hyper_cache_clear')) {
     535            hyper_cache_clear();
     536            return true;
    520537        }
    521538
     
    524541            comet_cache::clear();
    525542        }
    526 
    527         // Clean user cache
    528         if($user && function_exists('clean_user_cache')) {
    529             clean_user_cache( $user );
     543       
     544        // Clean Simple Cache
     545        if (function_exists('simple_cache_flush')) {
     546            simple_cache_flush();
     547        }
     548
     549        // Clean Autoptimize
     550        if (class_exists('autoptimizeCache') && method_exists('autoptimizeCache', 'clearall')) {
     551            autoptimizeCache::clearall();
     552        }
     553       
     554        // Clean WP-Optimize
     555        if (class_exists('WP_Optimize_Cache_Commands', false)) {
     556            ( new WP_Optimize_Cache_Commands() )->purge_page_cache();
    530557        }
    531558       
  • cf-geoplugin/trunk/readme.txt

    r3238154 r3238320  
    66Tested up to: 6.7
    77Requires PHP: 7.0
    8 Stable tag: 8.8.3
     8Stable tag: 8.8.4
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    414414== Changelog ==
    415415
     416= 8.8.4 =
     417* Removed PHP errors in regular versions
     418* Removed obsolete code
     419* Fixed cache problems
     420
    416421= 8.8.3 =
    417422* Fixed problem with transients (must delete them after update)
     
    480485
    481486== Upgrade Notice ==
     487
     488= 8.8.4 =
     489* Removed PHP errors in regular versions
     490* Removed obsolete code
     491* Fixed cache problems
    482492
    483493= 8.8.3 =
Note: See TracChangeset for help on using the changeset viewer.