Plugin Directory


Ignore:
Timestamp:
02/04/2023 07:03:46 AM (3 years ago)
Author:
termageddon
Message:

[1.3.0-1] Identified and potentially resolve issue in which server is re-downloading geolocation database without needing to.

Location:
termageddon-usercentrics
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • termageddon-usercentrics/tags/1.3.0/admin/class-termageddon-usercentrics-admin.php

    r2860002 r2860007  
    735735
    736736        $text = get_option( 'termageddon_usercentrics_download_error_count', 0 );
    737         Termageddon_Usercentrics::debug( $text );
    738737        printf(
    739738            '<input type="text" id="termageddon_usercentrics_download_error_count" name="termageddon_usercentrics_download_error_count" value="%s" />',
     
    751750
    752751        $text = get_option( 'termageddon_usercentrics_download_error_log', '' );
    753         Termageddon_Usercentrics::debug( $text );
    754752        echo '<input type="hidden" id="termageddon_usercentrics_download_error_log" name="termageddon_usercentrics_download_error_log[]" value="" />
    755753        <p>' . esc_html__( 'Upon saving, all previous errors in the log will be deleted.', 'termageddon-usercentrics' ) . '</p>';
  • termageddon-usercentrics/tags/1.3.0/includes/class-termageddon-usercentrics.php

    r2860002 r2860007  
    240240        $this->loader->add_action( 'wp_enqueue_scripts', $plugin_public, 'enqueue_scripts' );
    241241
    242         if ( self::is_geoip_enabled() ) {
     242        if ( self::is_geoip_enabled() && ! wp_doing_cron() ) {
    243243            $this->loader->add_action( 'init', $this, 'lookup_ip_address' );
    244244
     
    365365        $path = self::get_maxmind_db_path();
    366366
    367         if ( ! file_exists( $path ) || defined( 'DOING_CRON' ) ) {
     367        if ( ! file_exists( $path ) || wp_doing_cron() ) {
    368368
    369369            if ( ! is_dir( dirname( $path ) ) ) {
  • termageddon-usercentrics/trunk/admin/class-termageddon-usercentrics-admin.php

    r2860001 r2860007  
    735735
    736736        $text = get_option( 'termageddon_usercentrics_download_error_count', 0 );
    737         Termageddon_Usercentrics::debug( $text );
    738737        printf(
    739738            '<input type="text" id="termageddon_usercentrics_download_error_count" name="termageddon_usercentrics_download_error_count" value="%s" />',
     
    751750
    752751        $text = get_option( 'termageddon_usercentrics_download_error_log', '' );
    753         Termageddon_Usercentrics::debug( $text );
    754752        echo '<input type="hidden" id="termageddon_usercentrics_download_error_log" name="termageddon_usercentrics_download_error_log[]" value="" />
    755753        <p>' . esc_html__( 'Upon saving, all previous errors in the log will be deleted.', 'termageddon-usercentrics' ) . '</p>';
  • termageddon-usercentrics/trunk/includes/class-termageddon-usercentrics.php

    r2860001 r2860007  
    240240        $this->loader->add_action( 'wp_enqueue_scripts', $plugin_public, 'enqueue_scripts' );
    241241
    242         if ( self::is_geoip_enabled() ) {
     242        if ( self::is_geoip_enabled() && ! wp_doing_cron() ) {
    243243            $this->loader->add_action( 'init', $this, 'lookup_ip_address' );
    244244
     
    365365        $path = self::get_maxmind_db_path();
    366366
    367         if ( ! file_exists( $path ) || defined( 'DOING_CRON' ) ) {
     367        if ( ! file_exists( $path ) || wp_doing_cron() ) {
    368368
    369369            if ( ! is_dir( dirname( $path ) ) ) {
Note: See TracChangeset for help on using the changeset viewer.