Changeset 886669
- Timestamp:
- 04/03/2014 08:24:05 AM (12 years ago)
- Location:
- bodi0s-easy-cache/trunk
- Files:
-
- 6 edited
-
bodi0-easy-cache-admin.php (modified) (6 diffs)
-
bodi0-easy-cache-settings.php (modified) (1 diff)
-
bodi0-easy-cache-start.php (modified) (1 diff)
-
bodi0-easy-cache.php (modified) (3 diffs)
-
lib/func.php (modified) (2 diffs)
-
readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
bodi0s-easy-cache/trunk/bodi0-easy-cache-admin.php
r874634 r886669 5 5 Author: Budiony Damyanov 6 6 Email: [email protected] 7 Version: 0. 57 Version: 0.6 8 8 License: GPL2 9 9 … … 109 109 if (!file_exists($cache_folder)) { 110 110 //Attempt to create the unique cache folder 111 $cache_folder_created = mkdir($cache_folder, 0755);111 $cache_folder_created = @mkdir($cache_folder, 0755); 112 112 if (!$cache_folder_created) { 113 113 ?> … … 122 122 123 123 } 124 125 126 127 124 128 125 /*****************************************************************************************************************************/ … … 161 158 } 162 159 } 163 164 165 166 167 168 169 170 171 172 173 160 174 161 … … 256 243 257 244 if(isset($_GET['restore']) && $_GET['restore']=='defaults' && ( wp_verify_nonce( $nonce, 'easy-cache-nonce' ))) { 258 update_option("easy_cache_option_cache_time"," 5");245 update_option("easy_cache_option_cache_time","30"); 259 246 update_option("easy_cache_option_cache_folder",untrailingslashit($upload_dir['basedir']).DIRECTORY_SEPARATOR."cached".DIRECTORY_SEPARATOR); 260 247 update_option("easy_cache_option_exclude_search_queries","No"); … … 265 252 update_option("easy_cache_option_minified_css_files",""); 266 253 update_option("easy_cache_option_skip_jetpack_mobile_caching","Yes"); 267 update_option("easy_cache_option_search_cache_timeout"," 5");254 update_option("easy_cache_option_search_cache_timeout","15"); 268 255 //Response handling 269 256 ?> -
bodi0s-easy-cache/trunk/bodi0-easy-cache-settings.php
r874644 r886669 5 5 Author: Budiony Damyanov 6 6 Email: [email protected] 7 Version: 0. 57 Version: 0.6 8 8 License: GPL2 9 9 -
bodi0s-easy-cache/trunk/bodi0-easy-cache-start.php
r874634 r886669 5 5 Author: Budiony Damyanov 6 6 Email: [email protected] 7 Version: 0. 57 Version: 0.6 8 8 License: GPL2 9 9 -
bodi0s-easy-cache/trunk/bodi0-easy-cache.php
r874638 r886669 5 5 Plugin URI: http://wordpress.org/plugins/bodi0s-easy-cache/ 6 6 Description: Caches the pages/posts in your blog for improved performance. 7 Version: 0. 57 Version: 0.6 8 8 Text Domain: bodi0-easy-cache 9 9 Domain Path: /languages … … 38 38 /*Set the default plugin options*/ 39 39 $plugin_options = array( 40 'easy_cache_option_cache_time'=>' 5',40 'easy_cache_option_cache_time'=>'30', 41 41 'easy_cache_option_cache_folder'=>untrailingslashit($upload_dir['basedir']).DIRECTORY_SEPARATOR."cached".DIRECTORY_SEPARATOR, 42 42 'easy_cache_option_exclude_search_queries'=>'No', … … 47 47 'easy_cache_option_minified_css_files'=>'', 48 48 'easy_cache_option_skip_jetpack_mobile_caching'=>'Yes', 49 'easy_cache_option_search_cache_timeout'=>' 5'49 'easy_cache_option_search_cache_timeout'=>'15' 50 50 51 51 -
bodi0s-easy-cache/trunk/lib/func.php
r874657 r886669 5 5 Author: bodi0 6 6 Email: [email protected] 7 Version: 0. 57 Version: 0.6 8 8 License: GPL2 9 9 … … 160 160 $buffer = preg_replace('~(\s)\1+~', '$1', $buffer); 161 161 $buffer = str_replace(array("\t","\r","\t\r","\r\t"),"", $buffer); 162 $buffer = str_replace(array(" />"),"/>", $buffer); 163 $buffer = str_replace(array(" </"),"</", $buffer); 162 $buffer = str_replace(array(" />","/>\r","/>\r ","/>\n","/>\n ","/>\r\n","/>\r\n "),"/>", $buffer); 163 $buffer = str_replace(array(" </","\r</"," \r</","\n</"," \n</","\r\n</"," \r\n</"),"</", $buffer); 164 $buffer = str_replace(array(";\r",";\r\n",";\n","; "," ;"," ; "),";", $buffer); 165 $buffer = str_replace(array("{ "," {"," { ","{ ","{ ", "{\r","{\n","{\r\n"), "{", $buffer); 166 $buffer = str_replace(array("} "," }"," } ","}\r","}\n","}\r\n"), "}", $buffer); 167 164 168 return $buffer; 165 169 } -
bodi0s-easy-cache/trunk/readme.txt
r874634 r886669 5 5 Requires at least: 3.2.0 6 6 Tested up to: 3.8.1 7 Stable tag: 0. 57 Stable tag: 0.6 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 77 77 **Will comments or any other dynamic parts of my blog update immediately?** 78 78 79 It depends on your configuration of Easy cache. There is an automatic cache expiration system, which runs through WordPress® behind-the-scene, according to your Cached file expires setting (see: `Settings -› Easy cache -› Cached file expires after` and `Settings -› Easy cache -› Rebuild cached file on page/post/comment update`). The default value of 5minutes is suitable for most cases. If you don't update your site too often, you could set this to 240 minutes (which is 4 hours) or longer. The longer the cache expiration time is, the greater your performance gain. Alternatively, the shorter the expiration time, the fresher everything will remain on your site, but at cost of slowdowns.79 It depends on your configuration of Easy cache. There is an automatic cache expiration system, which runs through WordPress® behind-the-scene, according to your Cached file expires setting (see: `Settings -› Easy cache -› Cached file expires after` and `Settings -› Easy cache -› Rebuild cached file on page/post/comment update`). The default value of 30 minutes is suitable for most cases. If you don't update your site too often, you could set this to 240 minutes (which is 4 hours) or longer. The longer the cache expiration time is, the greater your performance gain. Alternatively, the shorter the expiration time, the fresher everything will remain on your site, but at cost of slowdowns. 80 80 81 81 … … 146 146 == Changelog == 147 147 148 = 0.6 = 149 150 -Improved HTML page compression 151 148 152 = 0.5 = 149 153
Note: See TracChangeset
for help on using the changeset viewer.