Plugin Directory

Changeset 1155323


Ignore:
Timestamp:
05/07/2015 12:42:36 PM (11 years ago)
Author:
cadeyrn
Message:

releasing 1.8.3

Location:
wp-ffpc
Files:
1 deleted
5 edited
10 copied

Legend:

Unmodified
Added
Removed
  • wp-ffpc/tags/1.8.3/readme.txt

    r1149574 r1155323  
    55Requires at least: 3.0
    66Tested up to: 4.2.1
    7 Stable tag: 1.8.2
     7Stable tag: 1.8.3
    88License: GPLv3
    99License URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    126126* every ..C indicates bugfixes for A.B version.
    127127
     128= 1.8.3 =
     129*2015-05-07*
     130
     131* small change in key creation: prefix is kept in front of sha1 hashes for debugging purposes
     132
    128133= 1.8.2 =
    129134*2015-04-30*
  • wp-ffpc/tags/1.8.3/wp-ffpc-backend.php

    r1149574 r1155323  
    140140
    141141        $key_base = self::map_urimap($urimap, $this->options['key']);
    142         /* data is string only with content, meta is not used in nginx */
     142
     143        if ( isset($this->options['hashkey']) && $this->options['hashkey'] == true)
     144            $key_base = sha1($key_base);
     145
    143146        $key = $prefix . $key_base;
    144         if ( isset($this->options['hashkey']) && $this->options['hashkey'] == true)
    145             $key = sha1 ($prefix . $key_base );
    146147
    147148        $this->log ( sprintf( __translate__( 'original key configuration: %s', $this->plugin_constant ),  $this->options['key'] ) );
  • wp-ffpc/tags/1.8.3/wp-ffpc-class.php

    r1149574 r1155323  
    577577                <dd>
    578578                    <input type="checkbox" name="hashkey" id="hashkey" value="1" <?php checked($this->options['hashkey'],true); ?> />
    579                     <span class="description"><?php _e('Occasionally URL can be too long to be used as key for the backend storage, especially with memcached. Turn on this feature to use SHA1 hash of the URL as key instead. Please be aware that you have to add ( or uncomment ) a line in nginx if you want nginx to fetch the data directly; for details, please see the nginx example tab.', $this->plugin_constant); ?>
     579                    <span class="description"><?php _e('Occasionally URL can be too long to be used as key for the backend storage, especially with memcached. Turn on this feature to use SHA1 hash of the URL as key instead. Please be aware that you have to add ( or uncomment ) a line and a <strong>module</strong> in nginx if you want nginx to fetch the data directly; for details, please see the nginx example tab.', $this->plugin_constant); ?>
    580580                </dd>
    581581
     
    746746            <fieldset id="<?php echo $this->plugin_constant ?>-nginx">
    747747            <legend><?php _e('Sample config for nginx to utilize the data entries', $this->plugin_constant); ?></legend>
     748            <div class="update-nag"><strong>In case you are about to use nginx to fetch memcached entries directly and to use SHA1 hash keys, you will need an nginx version compiled with <a href="http://wiki.nginx.org/HttpSetMiscModule">HttpSetMiscModule</a>. Otherwise set_sha1 function is not available in nginx.</strong></div>
    748749            <pre><?php echo $this->nginx_example(); ?></pre>
    749750            </fieldset>
     
    10201021        $nginx = file_get_contents ( $this->nginx_sample );
    10211022
     1023        if ( isset($this->options['hashkey']) && $this->options['hashkey'] == true )
     1024            $mckeys = 'set_sha1 $memcached_sha1_key $memcached_raw_key;
     1025            set $memcached_key DATAPREFIX$memcached_sha1_key;';
     1026        else
     1027            $mckeys = 'set $memcached_key DATAPREFIX$memcached_raw_key;';
     1028
     1029        $nginx = str_replace ( 'HASHEDORNOT' , $mckeys , $nginx );
     1030
    10221031        /* replace the data prefix with the configured one */
    1023         $to_replace = array ( 'DATAPREFIX' , 'SERVERROOT', 'SERVERLOG' );
    1024         $replace_with = array ( $this->options['prefix_data'] . $this->options['key'] , ABSPATH, $_SERVER['SERVER_NAME'] );
     1032        $to_replace = array ( 'DATAPREFIX' , 'KEYFORMAT',  'SERVERROOT', 'SERVERLOG' );
     1033        $replace_with = array ( $this->options['prefix_data'], $this->options['key'] , ABSPATH, $_SERVER['SERVER_NAME'] );
    10251034        $nginx = str_replace ( $to_replace , $replace_with , $nginx );
     1035
    10261036
    10271037        /* set upstream servers from configured servers, best to get from the actual backend */
  • wp-ffpc/tags/1.8.3/wp-ffpc-nginx-sample.conf

    r1149574 r1155323  
    7171
    7272            default_type text/html;
    73             set $memcached_raw_key data-$scheme://$host$request_uri;
    74             # uncomment the following line if you have enabled
    75             # sha1 hash option
    76             # set_sha1 $memcached_key $memcached_raw_key;
     73
     74            set $memcached_raw_key KEYFORMAT;
     75
     76            HASHEDORNOT
     77
    7778            set $memcached_request 1;
    7879
  • wp-ffpc/tags/1.8.3/wp-ffpc.php

    r1149574 r1155323  
    44Plugin URI: https://github.com/petermolnar/wp-ffpc
    55Description: WordPress in-memory full page cache plugin
    6 Version: 1.8.2
     6Version: 1.8.3
    77Author: Peter Molnar <[email protected]>
    88Author URI: http://petermolnar.eu/
  • wp-ffpc/trunk/readme.txt

    r1149574 r1155323  
    55Requires at least: 3.0
    66Tested up to: 4.2.1
    7 Stable tag: 1.8.2
     7Stable tag: 1.8.3
    88License: GPLv3
    99License URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    126126* every ..C indicates bugfixes for A.B version.
    127127
     128= 1.8.3 =
     129*2015-05-07*
     130
     131* small change in key creation: prefix is kept in front of sha1 hashes for debugging purposes
     132
    128133= 1.8.2 =
    129134*2015-04-30*
  • wp-ffpc/trunk/wp-ffpc-backend.php

    r1149574 r1155323  
    140140
    141141        $key_base = self::map_urimap($urimap, $this->options['key']);
    142         /* data is string only with content, meta is not used in nginx */
     142
     143        if ( isset($this->options['hashkey']) && $this->options['hashkey'] == true)
     144            $key_base = sha1($key_base);
     145
    143146        $key = $prefix . $key_base;
    144         if ( isset($this->options['hashkey']) && $this->options['hashkey'] == true)
    145             $key = sha1 ($prefix . $key_base );
    146147
    147148        $this->log ( sprintf( __translate__( 'original key configuration: %s', $this->plugin_constant ),  $this->options['key'] ) );
  • wp-ffpc/trunk/wp-ffpc-class.php

    r1149574 r1155323  
    577577                <dd>
    578578                    <input type="checkbox" name="hashkey" id="hashkey" value="1" <?php checked($this->options['hashkey'],true); ?> />
    579                     <span class="description"><?php _e('Occasionally URL can be too long to be used as key for the backend storage, especially with memcached. Turn on this feature to use SHA1 hash of the URL as key instead. Please be aware that you have to add ( or uncomment ) a line in nginx if you want nginx to fetch the data directly; for details, please see the nginx example tab.', $this->plugin_constant); ?>
     579                    <span class="description"><?php _e('Occasionally URL can be too long to be used as key for the backend storage, especially with memcached. Turn on this feature to use SHA1 hash of the URL as key instead. Please be aware that you have to add ( or uncomment ) a line and a <strong>module</strong> in nginx if you want nginx to fetch the data directly; for details, please see the nginx example tab.', $this->plugin_constant); ?>
    580580                </dd>
    581581
     
    746746            <fieldset id="<?php echo $this->plugin_constant ?>-nginx">
    747747            <legend><?php _e('Sample config for nginx to utilize the data entries', $this->plugin_constant); ?></legend>
     748            <div class="update-nag"><strong>In case you are about to use nginx to fetch memcached entries directly and to use SHA1 hash keys, you will need an nginx version compiled with <a href="http://wiki.nginx.org/HttpSetMiscModule">HttpSetMiscModule</a>. Otherwise set_sha1 function is not available in nginx.</strong></div>
    748749            <pre><?php echo $this->nginx_example(); ?></pre>
    749750            </fieldset>
     
    10201021        $nginx = file_get_contents ( $this->nginx_sample );
    10211022
     1023        if ( isset($this->options['hashkey']) && $this->options['hashkey'] == true )
     1024            $mckeys = 'set_sha1 $memcached_sha1_key $memcached_raw_key;
     1025            set $memcached_key DATAPREFIX$memcached_sha1_key;';
     1026        else
     1027            $mckeys = 'set $memcached_key DATAPREFIX$memcached_raw_key;';
     1028
     1029        $nginx = str_replace ( 'HASHEDORNOT' , $mckeys , $nginx );
     1030
    10221031        /* replace the data prefix with the configured one */
    1023         $to_replace = array ( 'DATAPREFIX' , 'SERVERROOT', 'SERVERLOG' );
    1024         $replace_with = array ( $this->options['prefix_data'] . $this->options['key'] , ABSPATH, $_SERVER['SERVER_NAME'] );
     1032        $to_replace = array ( 'DATAPREFIX' , 'KEYFORMAT',  'SERVERROOT', 'SERVERLOG' );
     1033        $replace_with = array ( $this->options['prefix_data'], $this->options['key'] , ABSPATH, $_SERVER['SERVER_NAME'] );
    10251034        $nginx = str_replace ( $to_replace , $replace_with , $nginx );
     1035
    10261036
    10271037        /* set upstream servers from configured servers, best to get from the actual backend */
  • wp-ffpc/trunk/wp-ffpc-nginx-sample.conf

    r1149574 r1155323  
    7171
    7272            default_type text/html;
    73             set $memcached_raw_key data-$scheme://$host$request_uri;
    74             # uncomment the following line if you have enabled
    75             # sha1 hash option
    76             # set_sha1 $memcached_key $memcached_raw_key;
     73
     74            set $memcached_raw_key KEYFORMAT;
     75
     76            HASHEDORNOT
     77
    7778            set $memcached_request 1;
    7879
  • wp-ffpc/trunk/wp-ffpc.php

    r1149574 r1155323  
    44Plugin URI: https://github.com/petermolnar/wp-ffpc
    55Description: WordPress in-memory full page cache plugin
    6 Version: 1.8.2
     6Version: 1.8.3
    77Author: Peter Molnar <[email protected]>
    88Author URI: http://petermolnar.eu/
Note: See TracChangeset for help on using the changeset viewer.