Changeset 1851501
- Timestamp:
- 04/03/2018 06:46:36 AM (6 years ago)
- Location:
- nginx-champuru
- Files:
-
- 8 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
nginx-champuru/tags/3.3.0/includes/caching.class.php
r994908 r1851501 49 49 public function nonce_life($life) 50 50 { 51 $expires = get_option("nginxchampuru-cache_expires", array($life)); 52 $max = max(array_values($expires)); 51 $expires = get_option(NginxChampuru::OPTION_NAME_CACHE_EXPIRES, array($life)); 52 $max = 53 is_array($expires) && is_array(array_values($expires)) 54 ? max(array_values($expires)) 55 : 0; 53 56 if ($max > $life) { 54 57 return $max; … … 111 114 if (is_singular() && comments_open()) { 112 115 wp_enqueue_script('jquery'); 113 wp_enqueue_script( 114 'jquery.cookie', 115 plugins_url('js/jquery.cookie.min.js', dirname(dirname(__FILE__)) . '/nginx-champuru.php'), 116 array('jquery'), 117 '1.3.1', 118 true 119 ); 116 wp_enqueue_script( 'js.cookie', plugins_url('js/js.cookie.js', dirname(dirname(__FILE__)) . '/nginx-champuru.php'), array('jquery'), '2.2.0', true ); 120 117 121 118 add_action( … … 139 136 <script type="text/javascript"> 140 137 (function($){ 141 $("#author").val( $.cookie("comment_author_%1$s"));142 $("#email").val( $.cookie("comment_author_email_%1$s"));143 $("#url").val( $.cookie("comment_author_url_%1$s"));138 $("#author").val(("comment_author_%1$s")); 139 $("#email").val(("comment_author_email_%1$s")); 140 $("#url").val(("comment_author_url_%1$s")); 144 141 })(jQuery); 145 142 </script> -
nginx-champuru/tags/3.3.0/includes/wp-cli.php
r1357162 r1851501 30 30 */ 31 31 function flush($args, $assoc_args) { 32 global $nginxchampuru;32 ; 33 33 34 34 if (isset($assoc_args['cache']) && $assoc_args['cache']) { … … 59 59 */ 60 60 function _list($args, $assoc_args) { 61 global $nginxchampuru;61 ; 62 62 $format = strtolower(isset($assoc_args['format']) ? $assoc_args['format'] : 'csv'); 63 63 $items = (array)$nginxchampuru->get_cached_objects(); -
nginx-champuru/tags/3.3.0/nginx-champuru.php
r1357162 r1851501 2 2 /* 3 3 Plugin Name: Nginx Cache Controller 4 Author: Ninjax Team (Takayuki Miyauchi)4 Author: 5 5 Plugin URI: https://github.com/megumiteam/nginx-cache-controller 6 6 Description: Plugin for Nginx Reverse Proxy 7 Version: 3. 2.08 Author URI: http:// ninjax.cc/7 Version: 3..0 8 Author URI: http:/// 9 9 Domain Path: /languages 10 10 Text Domain: nginxchampuru -
nginx-champuru/tags/3.3.0/readme.txt
r1357162 r1851501 1 1 === Nginx Cache Controller === 2 Contributors: miyauchi, wokamoto 2 Contributors: miyauchi, wokamoto 3 3 Donate link: http://ninjax.cc/ 4 4 Tags: nginx, reverse proxy, cache 5 5 Requires at least: 3.4 6 Tested up to: 4. 47 Stable tag: 3. 2.06 Tested up to: 4. 7 Stable tag: 3..0 8 8 9 9 Provides some functions of controlling Nginx proxy server cache. … … 100 100 = 3.2.0 = 101 101 102 103 104 105 102 106 * Bug fix for WP-CLI 103 107 -
nginx-champuru/trunk/includes/caching.class.php
r994908 r1851501 49 49 public function nonce_life($life) 50 50 { 51 $expires = get_option("nginxchampuru-cache_expires", array($life)); 52 $max = max(array_values($expires)); 51 $expires = get_option(NginxChampuru::OPTION_NAME_CACHE_EXPIRES, array($life)); 52 $max = 53 is_array($expires) && is_array(array_values($expires)) 54 ? max(array_values($expires)) 55 : 0; 53 56 if ($max > $life) { 54 57 return $max; … … 111 114 if (is_singular() && comments_open()) { 112 115 wp_enqueue_script('jquery'); 113 wp_enqueue_script( 114 'jquery.cookie', 115 plugins_url('js/jquery.cookie.min.js', dirname(dirname(__FILE__)) . '/nginx-champuru.php'), 116 array('jquery'), 117 '1.3.1', 118 true 119 ); 116 wp_enqueue_script( 'js.cookie', plugins_url('js/js.cookie.js', dirname(dirname(__FILE__)) . '/nginx-champuru.php'), array('jquery'), '2.2.0', true ); 120 117 121 118 add_action( … … 139 136 <script type="text/javascript"> 140 137 (function($){ 141 $("#author").val( $.cookie("comment_author_%1$s"));142 $("#email").val( $.cookie("comment_author_email_%1$s"));143 $("#url").val( $.cookie("comment_author_url_%1$s"));138 $("#author").val(("comment_author_%1$s")); 139 $("#email").val(("comment_author_email_%1$s")); 140 $("#url").val(("comment_author_url_%1$s")); 144 141 })(jQuery); 145 142 </script> -
nginx-champuru/trunk/includes/wp-cli.php
r1357162 r1851501 30 30 */ 31 31 function flush($args, $assoc_args) { 32 global $nginxchampuru;32 ; 33 33 34 34 if (isset($assoc_args['cache']) && $assoc_args['cache']) { … … 59 59 */ 60 60 function _list($args, $assoc_args) { 61 global $nginxchampuru;61 ; 62 62 $format = strtolower(isset($assoc_args['format']) ? $assoc_args['format'] : 'csv'); 63 63 $items = (array)$nginxchampuru->get_cached_objects(); -
nginx-champuru/trunk/nginx-champuru.php
r1357162 r1851501 2 2 /* 3 3 Plugin Name: Nginx Cache Controller 4 Author: Ninjax Team (Takayuki Miyauchi)4 Author: 5 5 Plugin URI: https://github.com/megumiteam/nginx-cache-controller 6 6 Description: Plugin for Nginx Reverse Proxy 7 Version: 3. 2.08 Author URI: http:// ninjax.cc/7 Version: 3..0 8 Author URI: http:/// 9 9 Domain Path: /languages 10 10 Text Domain: nginxchampuru -
nginx-champuru/trunk/readme.txt
r1357162 r1851501 1 1 === Nginx Cache Controller === 2 Contributors: miyauchi, wokamoto 2 Contributors: miyauchi, wokamoto 3 3 Donate link: http://ninjax.cc/ 4 4 Tags: nginx, reverse proxy, cache 5 5 Requires at least: 3.4 6 Tested up to: 4. 47 Stable tag: 3. 2.06 Tested up to: 4. 7 Stable tag: 3..0 8 8 9 9 Provides some functions of controlling Nginx proxy server cache. … … 100 100 = 3.2.0 = 101 101 102 103 104 105 102 106 * Bug fix for WP-CLI 103 107
Note: See TracChangeset
for help on using the changeset viewer.