Plugin Directory

Changeset 3366835


Ignore:
Timestamp:
09/24/2025 02:04:46 AM (4 months ago)
Author:
plugcrux
Message:

Release version 1.0.10 - Fixed Elementor free version submission issue and removed cache-based account loading

Location:
integrate-any-form-with-zoho-crm
Files:
77 added
7 edited

Legend:

Unmodified
Added
Removed
  • integrate-any-form-with-zoho-crm/trunk/includes/extend/auth.php

    r3229014 r3366835  
    1414    class IAFWZC_Accounts_Extend extends WP_List_Table
    1515    {
    16         protected $cache_key;
    1716
    1817        public function __construct()
    1918        {
    2019            global $blog_id;
    21 
    22             // Dynamically set cache key for multisite compatibility
    23             $this->cache_key = "iafwzc_all_account_data_{$blog_id}";
    2420
    2521            // Initialize parent class with the required arguments
     
    5955            $this->_column_headers = [$columns, $hidden, $sortable];
    6056
    61             // Retrieve account data from cache
    62             $account_items = wp_cache_get($this->cache_key);
    63             if ($account_items === false) {
    64                 // If not cached, fetch all account data
    65                 $account_items = $iafwzc_accountDBInstance->get_account_data();
    66             }
     57            $account_items = $iafwzc_accountDBInstance->get_account_data();
    6758
    6859            // Check if $account_items is an array with data
  • integrate-any-form-with-zoho-crm/trunk/includes/extend/error-log.php

    r3229014 r3366835  
    1313    class IAFWZC_Error_Log_Extend extends WP_List_Table
    1414    {
    15         protected $cache_key = 'iafwzc_all_error_log_data';
    16 
    1715        public function __construct()
    1816        {
     
    304302
    305303
    306         public function clear_cache()
    307         {
    308             wp_cache_delete($this->cache_key);
    309         }
    310 
    311304        public function extra_tablenav($which)
    312305        {
  • integrate-any-form-with-zoho-crm/trunk/includes/notice/reintegration-notice.php

    r3366372 r3366835  
    3434            <strong><?php echo esc_html__('Important:', 'integrate-any-form-with-zoho-crm'); ?></strong>
    3535            <?php echo esc_html__(
    36                 'If you previously used the Elementor Forms integration, please reconfigure it after this update. All other form integrations continue to work normally.',
     36                'If you are using a version below 1.0.9 and previously used the Elementor Forms integration, please reconfigure it after this update. All other form integrations continue to work normally.',
    3737                'integrate-any-form-with-zoho-crm'
    3838            ); ?>
  • integrate-any-form-with-zoho-crm/trunk/integrate-any-form-with-zoho-crm.php

    r3366372 r3366835  
    55 * Plugin URI: https://integrazo.com/products/integrate-any-form-with-zoho-crm
    66 * Description: Automatically send leads from popular WordPress forms to Zoho CRM and Bigin and grow your business.
    7  * Version: 1.0.9
     7 * Version: 1.0.10
    88 * Author: Integrazo
    99 * Author URI: https://integrazo.com/
  • integrate-any-form-with-zoho-crm/trunk/readme.txt

    r3366372 r3366835  
    55Tested up to: 6.8
    66Requires PHP: 7.0
    7 Stable tag: 1.0.9
     7Stable tag: 1.0.10
    88License: GPLv2 or later 
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html 
     
    471471== Changelog ==
    472472
     473= 1.0.10 =
     474* Fixed: Elementor free version form submissions not working
     475* Removed: Cache-based account loading for more reliable performance
     476
    473477= 1.0.9 =
    474478* Changed: Elementor Forms integration flow updated for smoother setup
  • integrate-any-form-with-zoho-crm/trunk/src/db/zoho-account.php

    r3229014 r3366835  
    111111            global $wpdb, $blog_id;
    112112
    113             // Cache key for all account data with multisite compatibility
    114             $cache_key = "iafwzc_all_account_data_{$blog_id}";
    115 
    116             // Attempt to get data from cache without specifying a group
    117             $cached_data = wp_cache_get($cache_key);
    118 
    119             if ($cached_data !== false) {
    120                 return $cached_data;
    121             }
    122 
    123113            // Fetch all account data from the database
    124             // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery
     114            // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery,WordPress.DB.DirectDatabaseQuery.NoCaching
    125115            $data = $wpdb->get_results("SELECT * FROM " . esc_sql($this->table_name), ARRAY_A);
    126116
     
    129119                return [];
    130120            }
    131 
    132             // Store the fetched data in cache for future requests without a group
    133             wp_cache_set($cache_key, $data, '', HOUR_IN_SECONDS);
    134121
    135122            return $data;
  • integrate-any-form-with-zoho-crm/trunk/src/forms/submit-action.php

    r3366372 r3366835  
    384384                $form_id       = $form_post_id . '_' . $form_widget_id;
    385385                $form_group_id = 7; // Elementor Forms group
    386 
    387386                // --- License/session check
    388387                $session = iafwzc_is_valid_key();
     
    390389                    // If session invalid, block and stop further processing
    391390                    $IAFWZC_Field_MappingDBInstance->block_field_mapping();
    392                     return;
    393391                }
    394392
     
    417415                $raw_fields = $record->get('fields'); // ElementorPro\Forms\Record stores submitted fields here
    418416                $raw_fields = is_array($raw_fields) ? $raw_fields : [];
    419 
    420417                foreach ($raw_fields as $id => $field) {
    421418                    if (! is_array($field)) {
Note: See TracChangeset for help on using the changeset viewer.