Changeset 2174436
- Timestamp:
- 10/16/2019 05:18:54 PM (6 years ago)
- Location:
- hostry-pagespeed-booster/trunk
- Files:
-
- 3 edited
-
cdn-minifier.php (modified) (1 diff)
-
includes/main/CdnMinifierMinifier.php (modified) (5 diffs)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
hostry-pagespeed-booster/trunk/cdn-minifier.php
r2087424 r2174436 6 6 Author URI: https://hostry.com/ 7 7 License: GPLv2 or later 8 Version: 1.2. 28 Version: 1.2.3 9 9 */ 10 10 -
hostry-pagespeed-booster/trunk/includes/main/CdnMinifierMinifier.php
r2063659 r2174436 198 198 return false; 199 199 } 200 $indexHost = self::getIndexCache($homeURL);201 $homeURLHostOnly = preg_replace('|(https?:\/\/.[^\/]*).*|', '$1', $homeURL);200 $indexHost = self::getIndexCache($homeURL); 201 $homeURLHostOnly = preg_replace('|(https?:\/\/.[^\/]*).*|', '$1', $homeURL); 202 202 203 203 $fail = false; … … 210 210 $filesIndex = array(); 211 211 foreach ($src_files as $k => $file) { 212 $srcFile = preg_replace('|^' . preg_quote($homeURLHostOnly, '|') . '(.[^\?]*).*|', '$1', $file[0], -1, $cnt); 212 $srcFile = preg_replace('|^' . preg_quote($homeURLHostOnly, '|') . '(.[^\?]*).*|', '$1', $file[0], -1, 213 $cnt); 213 214 if ((int)$cnt === 0) { 214 215 /** … … 218 219 unset($src_files[$k]); 219 220 } else { 220 $files[] = $srcFile;221 $files[] = $srcFile; 221 222 $filesIndex[] = $file[0] . filemtime($_SERVER['DOCUMENT_ROOT'] . $srcFile); 222 223 } … … 230 231 * 231 232 */ 232 $statPluginFile = self::getPath('index' . $ext . '.json');233 $statPluginFile = self::getPath('index' . $ext . (is_user_logged_in() ? 1 : '') . '.json'); 233 234 $fileCache = md5(implode('|', $filesIndex)); 234 235 $reCache = false; … … 311 312 $md5_el[] = $homeURL; 312 313 $md5_el[] = get_template(); 314 $md5_el[] = is_user_logged_in() ? 'OnLine' : 'OffLine'; 313 315 314 316 return md5(implode('+', $md5_el)); -
hostry-pagespeed-booster/trunk/readme.txt
r2087424 r2174436 96 96 == Changelog == 97 97 98 = 1.2.3 = 99 * Optimizing minify for authorized/unauthorized user 100 98 101 = 1.2.2 = 99 102 * Added feature replace cdn link for `data-lazy-src` images
Note: See TracChangeset
for help on using the changeset viewer.