Changeset 629177
- Timestamp:
- 11/23/2012 10:16:12 PM (12 years ago)
- Location:
- hyper-cache-extended/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
hyper-cache-extended/trunk/cache.php
r590864 r629177 37 37 if(count($argv)==1 && (isset($argv['page_id']) || isset($argv['p']))){ 38 38 hyper_log_cache('QS found but only ignored items',3); 39 }else{ 39 }else{ 40 40 hyper_log_cache('QS found returning',3); 41 41 return false; … … 107 107 108 108 // The name of the file with html and other data 109 $hyper_cache_name = md5($ hyper_uri);109 $hyper_cache_name = md5($_SERVER['HTTP_HOST'].$hyper_uri); 110 110 $hc_file = $hyper_cache['path'] . $hyper_cache_name . hyper_mobile_type() . '.dat'; 111 111 … … 209 209 } else { 210 210 Header('Content-Encoding-handler: default'); 211 // No compression accepted or already supported natively by PHP, 211 // No compression accepted or already supported natively by PHP, 212 212 // Check if we have the plain html or decompress the compressed one. 213 213 214 214 if ($hyper_data['html']) { 215 215 //header('Content-Length: ' . strlen($hyper_data['html'])); … … 306 306 $data['type'] = 'page'; 307 307 } 308 308 309 309 } 310 310 $buffer = trim($buffer); … … 352 352 unset ($data['html']); 353 353 } 354 $file_exists = file_exists($hc_file); 354 355 $file = fopen($hc_file, 'w'); 355 356 fwrite($file, serialize($data)); 356 357 fclose($file); 357 hyper_log_cache('Cache writed ',2);358 hyper_log_cache('Cache writed '.($file_exists?'(old)':'(new)'),2); 358 359 359 360 header('Last-Modified: ' . date("r", @ filemtime($hc_file))); … … 429 430 */ 430 431 return; 431 432 432 433 // Log only errors: level > 2 433 434 if($level>2)return; -
hyper-cache-extended/trunk/plugin.php
r590864 r629177 4 4 Plugin URI: http://marto.lazarov.org/plugins/hyper-cache-extended 5 5 Description: Hyper Cache Extended is a cache system for WordPress to improve it's perfomances and save resources. Before update <a href="http://wordpress.org/extend/plugins/hyper-cache-extended/" target="_blank">read the version changes</a>. To manually upgrade remeber the sequence: deactivate, update, activate. 6 Version: 1.0. 46 Version: 1.0.5 7 7 Author: Martin Lazarov 8 8 Author URI: http://marto.lazarov.org -
hyper-cache-extended/trunk/readme.txt
r590864 r629177 3 3 Requires at least: 2.5 4 4 Tested up to: 3.3.1 5 Stable tag: 1.0. 45 Stable tag: 1.0.5 6 6 Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=D96ZZLGAV8X8J 7 7 Contributors: mlazarov … … 39 39 More can be read on the [official plugin page](http://marto.lazarov.org/plugins/hyper-cache-extended) and write me 40 40 if you have issues to [email protected] 41 42 Contribute to project: 43 http://github.com/mlazarov/Hyper-Cache-Extended 41 44 42 45 … … 76 79 == Changelog == 77 80 81 = 1.0.5 = 82 * Adding HTTP_HOST to cache file name 83 78 84 = 1.0.4 = 79 85 * Fixing rejected urls bug (10x to Robert)
Note: See TracChangeset
for help on using the changeset viewer.