Changeset 1155323
- Timestamp:
- 05/07/2015 12:42:36 PM (11 years ago)
- Location:
- wp-ffpc
- Files:
-
- 1 deleted
- 5 edited
- 10 copied
-
tags/1.8.3 (copied) (copied from wp-ffpc/trunk)
-
tags/1.8.3/readme.txt (copied) (copied from wp-ffpc/trunk/readme.txt) (2 diffs)
-
tags/1.8.3/uninstall.php (copied) (copied from wp-ffpc/trunk/uninstall.php)
-
tags/1.8.3/wp-admin.css (copied) (copied from wp-ffpc/trunk/wp-admin.css)
-
tags/1.8.3/wp-common (deleted)
-
tags/1.8.3/wp-ffpc-abstract.php (copied) (copied from wp-ffpc/trunk/wp-ffpc-abstract.php)
-
tags/1.8.3/wp-ffpc-acache.php (copied) (copied from wp-ffpc/trunk/wp-ffpc-acache.php)
-
tags/1.8.3/wp-ffpc-backend.php (copied) (copied from wp-ffpc/trunk/wp-ffpc-backend.php) (1 diff)
-
tags/1.8.3/wp-ffpc-class.php (copied) (copied from wp-ffpc/trunk/wp-ffpc-class.php) (3 diffs)
-
tags/1.8.3/wp-ffpc-nginx-sample.conf (copied) (copied from wp-ffpc/trunk/wp-ffpc-nginx-sample.conf) (1 diff)
-
tags/1.8.3/wp-ffpc.php (copied) (copied from wp-ffpc/trunk/wp-ffpc.php) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/wp-ffpc-backend.php (modified) (1 diff)
-
trunk/wp-ffpc-class.php (modified) (3 diffs)
-
trunk/wp-ffpc-nginx-sample.conf (modified) (1 diff)
-
trunk/wp-ffpc.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
wp-ffpc/tags/1.8.3/readme.txt
r1149574 r1155323 5 5 Requires at least: 3.0 6 6 Tested up to: 4.2.1 7 Stable tag: 1.8. 27 Stable tag: 1.8.3 8 8 License: GPLv3 9 9 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 126 126 * every ..C indicates bugfixes for A.B version. 127 127 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 128 133 = 1.8.2 = 129 134 *2015-04-30* -
wp-ffpc/tags/1.8.3/wp-ffpc-backend.php
r1149574 r1155323 140 140 141 141 $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 143 146 $key = $prefix . $key_base; 144 if ( isset($this->options['hashkey']) && $this->options['hashkey'] == true)145 $key = sha1 ($prefix . $key_base );146 147 147 148 $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 577 577 <dd> 578 578 <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); ?> 580 580 </dd> 581 581 … … 746 746 <fieldset id="<?php echo $this->plugin_constant ?>-nginx"> 747 747 <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> 748 749 <pre><?php echo $this->nginx_example(); ?></pre> 749 750 </fieldset> … … 1020 1021 $nginx = file_get_contents ( $this->nginx_sample ); 1021 1022 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 1022 1031 /* 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'] ); 1025 1034 $nginx = str_replace ( $to_replace , $replace_with , $nginx ); 1035 1026 1036 1027 1037 /* 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 71 71 72 72 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 77 78 set $memcached_request 1; 78 79 -
wp-ffpc/tags/1.8.3/wp-ffpc.php
r1149574 r1155323 4 4 Plugin URI: https://github.com/petermolnar/wp-ffpc 5 5 Description: WordPress in-memory full page cache plugin 6 Version: 1.8. 26 Version: 1.8.3 7 7 Author: Peter Molnar <[email protected]> 8 8 Author URI: http://petermolnar.eu/ -
wp-ffpc/trunk/readme.txt
r1149574 r1155323 5 5 Requires at least: 3.0 6 6 Tested up to: 4.2.1 7 Stable tag: 1.8. 27 Stable tag: 1.8.3 8 8 License: GPLv3 9 9 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 126 126 * every ..C indicates bugfixes for A.B version. 127 127 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 128 133 = 1.8.2 = 129 134 *2015-04-30* -
wp-ffpc/trunk/wp-ffpc-backend.php
r1149574 r1155323 140 140 141 141 $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 143 146 $key = $prefix . $key_base; 144 if ( isset($this->options['hashkey']) && $this->options['hashkey'] == true)145 $key = sha1 ($prefix . $key_base );146 147 147 148 $this->log ( sprintf( __translate__( 'original key configuration: %s', $this->plugin_constant ), $this->options['key'] ) ); -
wp-ffpc/trunk/wp-ffpc-class.php
r1149574 r1155323 577 577 <dd> 578 578 <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); ?> 580 580 </dd> 581 581 … … 746 746 <fieldset id="<?php echo $this->plugin_constant ?>-nginx"> 747 747 <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> 748 749 <pre><?php echo $this->nginx_example(); ?></pre> 749 750 </fieldset> … … 1020 1021 $nginx = file_get_contents ( $this->nginx_sample ); 1021 1022 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 1022 1031 /* 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'] ); 1025 1034 $nginx = str_replace ( $to_replace , $replace_with , $nginx ); 1035 1026 1036 1027 1037 /* set upstream servers from configured servers, best to get from the actual backend */ -
wp-ffpc/trunk/wp-ffpc-nginx-sample.conf
r1149574 r1155323 71 71 72 72 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 77 78 set $memcached_request 1; 78 79 -
wp-ffpc/trunk/wp-ffpc.php
r1149574 r1155323 4 4 Plugin URI: https://github.com/petermolnar/wp-ffpc 5 5 Description: WordPress in-memory full page cache plugin 6 Version: 1.8. 26 Version: 1.8.3 7 7 Author: Peter Molnar <[email protected]> 8 8 Author URI: http://petermolnar.eu/
Note: See TracChangeset
for help on using the changeset viewer.