Plugin Directory

Changeset 2915770


Ignore:
Timestamp:
05/22/2023 11:28:04 AM (3 years ago)
Author:
mailcamp
Message:

RSS archive performance improvement

Location:
mailcamp/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • mailcamp/trunk/README.txt

    r2885751 r2915770  
    55Requires at least: 4.9.1
    66Tested up to: 6.0.2
    7 Stable tag: 1.5.7
     7Stable tag: 1.5.8
    88Requires PHP: 5.6
    99License: GPLv2 or later
     
    2222This section describes how to install the plugin and get started using it.
    2323
    24 = Version 1.5.7 =
     24= Version 1.5.8 =
    25251. Unzip our archive and upload the entire mailcamp directory to your `/wp-content/plugins/ directory`
    26262. Activate the plugin through the **Plugins** menu in WordPress
     
    3131
    3232== Changelog ==
     33
     34== 1.5.8 ==
     35* improved - RSS archive performance improvement
    3336
    3437== 1.5.7 ==
  • mailcamp/trunk/includes/class-mailcamp-api.php

    r2885751 r2915770  
    2525    public $connection = false;
    2626    private $xml_data;
     27    private $xml_timeout = 3;
    2728    public $result;
    2829    public $test = false;
     
    267268            <listid>' . $listid . '</listid>
    268269            <num_to_retrieve>' . $count . '</num_to_retrieve>
     270            <include_body>false</include_body>
    269271        </details>
    270272        ';
    271 
    272         $this->execute();
    273 
    274         return $this->result->data;
     273       
     274        $this->xml_timeout = 10;
     275
     276        $this->execute();
     277
     278        return $this->result;
    275279    }
    276280
     
    322326            curl_setopt( $ch, CURLOPT_FOLLOWLOCATION, true );
    323327        }
    324         curl_setopt( $ch, CURLOPT_TIMEOUT, 3 );
     328        curl_setopt( $ch, CURLOPT_TIMEOUT, $this->xml_timeout );
    325329        curl_setopt( $ch, CURLOPT_POSTFIELDS, 'xml=' . $xml_data );
    326330
  • mailcamp/trunk/includes/core-functions.php

    r2789211 r2915770  
    313313        if ( $api_connection->status === true ) {
    314314            $archives        = $mc_api->getArchives($listid, 100);
     315            if ($archives->status === false) {
     316                $error_message = 'Error: '.$archives->data;
     317                return $error_message;
     318            }
    315319            $html = '<table class="mc-rss-newsletters">';
    316             foreach ( $archives->item as $key => $newsletter ) {
     320            foreach ( $archives->data->item as $key => $newsletter ) {
    317321                $link = str_replace( 'xml.php', '', $options_api['api_path'] ) . 'display.php?List=' . $listid . '&N=' . $newsletter->newsletterid;
    318322                $html .= '<tr>
  • mailcamp/trunk/mailcamp.php

    r2885753 r2915770  
    1414 * Plugin URI:        https://mailcamp.nl/ecommerce/koppel-wordpress-plugin-aan-mailinglijst-in-mailcamp/
    1515 * Description:       MailCamp form plugin. A simple plugin that adds a highly effective subscription form to your site.
    16  * Version:           1.5.7
     16 * Version:           1.5.8
    1717 * Author:            Silas de Rooy
    1818 * Author URI:        https://mailcamp.nl
     
    3333 * Rename this for your plugin and update it as you release new versions.
    3434 */
    35 define('MAILCAMP_VERSION', '1.5.7');
     35define('MAILCAMP_VERSION', '1.5.8');
    3636/**
    3737 * The code that runs during plugin activation.
  • mailcamp/trunk/readme.md

    r2885752 r2915770  
    55Requires at least: 4.9.1
    66Tested up to: 6.0.2
    7 Stable tag: 1.5.7
     7Stable tag: 1.5.8
    88Requires PHP: 5.6
    99License: GPLv2 or later
     
    2121This section describes how to install the plugin and get started using it.
    2222
    23 = Version 1.5.7 =
     23= Version 1.5.8 =
    24241. Unzip our archive and upload the entire mailcamp directory to your `/wp-content/plugins/ directory`
    25252. Activate the plugin through the **Plugins** menu in WordPress
     
    3030
    3131## Changelog ##
     32
     33### 1.5.8 ###
     34* improved - RSS archive performance improvement
    3235
    3336### 1.5.7 ###
Note: See TracChangeset for help on using the changeset viewer.