Plugin Directory

Changeset 629177


Ignore:
Timestamp:
11/23/2012 10:16:12 PM (12 years ago)
Author:
mlazarov
Message:

Adding HTTP_HOST to cache file name

Location:
hyper-cache-extended/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • hyper-cache-extended/trunk/cache.php

    r590864 r629177  
    3737        if(count($argv)==1 && (isset($argv['page_id']) || isset($argv['p']))){
    3838            hyper_log_cache('QS found but only ignored items',3);
    39         }else{ 
     39        }else{
    4040            hyper_log_cache('QS found returning',3);
    4141            return false;
     
    107107
    108108// 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);
    110110$hc_file = $hyper_cache['path'] . $hyper_cache_name . hyper_mobile_type() . '.dat';
    111111
     
    209209} else {
    210210    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,
    212212    // Check if we have the plain html or decompress the compressed one.
    213              
     213
    214214    if ($hyper_data['html']) {
    215215        //header('Content-Length: ' . strlen($hyper_data['html']));
     
    306306            $data['type'] = 'page';
    307307        }
    308        
     308
    309309    }
    310310    $buffer = trim($buffer);
     
    352352            unset ($data['html']);
    353353    }
     354    $file_exists = file_exists($hc_file);
    354355    $file = fopen($hc_file, 'w');
    355356    fwrite($file, serialize($data));
    356357    fclose($file);
    357     hyper_log_cache('Cache writed',2);
     358    hyper_log_cache('Cache writed '.($file_exists?'(old)':'(new)'),2);
    358359
    359360    header('Last-Modified: ' . date("r", @ filemtime($hc_file)));
     
    429430     */
    430431    return;
    431    
     432
    432433    // Log only errors: level > 2
    433434    if($level>2)return;
  • hyper-cache-extended/trunk/plugin.php

    r590864 r629177  
    44Plugin URI: http://marto.lazarov.org/plugins/hyper-cache-extended
    55Description: 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.4
     6Version: 1.0.5
    77Author: Martin Lazarov
    88Author URI: http://marto.lazarov.org
  • hyper-cache-extended/trunk/readme.txt

    r590864 r629177  
    33Requires at least: 2.5
    44Tested up to: 3.3.1
    5 Stable tag: 1.0.4
     5Stable tag: 1.0.5
    66Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=D96ZZLGAV8X8J
    77Contributors: mlazarov
     
    3939More can be read on the [official plugin page](http://marto.lazarov.org/plugins/hyper-cache-extended) and write me
    4040if you have issues to [email protected]
     41
     42Contribute to project:
     43http://github.com/mlazarov/Hyper-Cache-Extended
    4144
    4245
     
    7679== Changelog ==
    7780
     81= 1.0.5 =
     82* Adding HTTP_HOST to cache file name
     83
    7884= 1.0.4 =
    7985* Fixing rejected urls bug (10x to Robert)
Note: See TracChangeset for help on using the changeset viewer.