Changeset 3440516
- Timestamp:
- 01/15/2026 04:19:20 PM (3 months ago)
- Location:
- fastcache-by-host-it
- Files:
-
- 10 edited
- 5 copied
-
tags/1.5.9 (copied) (copied from fastcache-by-host-it/trunk)
-
tags/1.5.9/README.txt (copied) (copied from fastcache-by-host-it/trunk/README.txt) (2 diffs)
-
tags/1.5.9/fastcache.php (copied) (copied from fastcache-by-host-it/trunk/fastcache.php) (2 diffs)
-
tags/1.5.9/src/Core/Combiner.php (modified) (1 diff)
-
tags/1.5.9/src/Core/Html/Callbacks/CombineJsCss.php (modified) (1 diff)
-
tags/1.5.9/src/Core/Html/Callbacks/LazyLoad.php (modified) (1 diff)
-
tags/1.5.9/src/Core/Webp.php (modified) (1 diff)
-
tags/1.5.9/src/Host/public/class-fastcache-public.php (copied) (copied from fastcache-by-host-it/trunk/src/Host/public/class-fastcache-public.php)
-
tags/1.5.9/src/Host/public/workarounds.class.php (copied) (copied from fastcache-by-host-it/trunk/src/Host/public/workarounds.class.php)
-
trunk/README.txt (modified) (2 diffs)
-
trunk/fastcache.php (modified) (2 diffs)
-
trunk/src/Core/Combiner.php (modified) (1 diff)
-
trunk/src/Core/Html/Callbacks/CombineJsCss.php (modified) (1 diff)
-
trunk/src/Core/Html/Callbacks/LazyLoad.php (modified) (1 diff)
-
trunk/src/Core/Webp.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
fastcache-by-host-it/tags/1.5.9/README.txt
r3440400 r3440516 5 5 Tested up to: 6.9.0 6 6 Requires PHP: 8.0 7 Stable Tag: 1.5. 87 Stable Tag: 1.5.9 8 8 License: GPL-2.0+ 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.txt … … 132 132 133 133 == Changelog == 134 1.5.9 135 Fix Some php warning 136 134 137 1.5.8 135 138 Fix for default ttl -
fastcache-by-host-it/tags/1.5.9/fastcache.php
r3440400 r3440516 17 17 * Plugin URI: https://fastcache.host.it/wordpress/ 18 18 * Description: Abilita il tuo sito Wordpress alla prima vera CDN realizzata PER Wordpress e configurata AD-HOC per il tuo sito. Il massimo della velocità senza difficoltà di setup. 19 * Version: 1.5. 819 * Version: 1.5.9 20 20 * Author: Host.it and JExtensions Store - Alessandro Poletto 21 21 * Author URI: https://fastcache.host.it/alessandropoletto/ … … 44 44 define ( '_WP_EXEC', '1' ); 45 45 define ( '_FASTCACHE_EXEC', 1 ); 46 define ( 'FASTCACHE_VERSION', '1.5. 8' );46 define ( 'FASTCACHE_VERSION', '1.5.9' ); 47 47 define ( 'FASTCACHE_FILE_PATH', __FILE__ ); 48 48 -
fastcache-by-host-it/tags/1.5.9/src/Core/Combiner.php
r3417545 r3440516 161 161 162 162 // Prevent bots response to be cached 163 if( $isBot) {163 if(isset($isBot)) { 164 164 $aUrl ['id'] = ''; 165 165 } -
fastcache-by-host-it/tags/1.5.9/src/Core/Html/Callbacks/CombineJsCss.php
r3420501 r3440516 79 79 ); 80 80 $defaultExcludesBottom = array( '.com/recaptcha/api' ); 81 if( $isBot) {81 if(isset($isBot)) { 82 82 $defaultExcludesAlways = array(); 83 83 $defaultExcludesBottom = array(); -
fastcache-by-host-it/tags/1.5.9/src/Core/Html/Callbacks/LazyLoad.php
r3417545 r3440516 59 59 $aMatches = \FastCache\Core\Webp::convert( $this, $aMatches ); 60 60 } 61 62 $sFullMatch = @$aMatches[0] ?: false; 63 $sElementName = @$aMatches[1] ?: false; 64 $sClassAttribute = @$aMatches[2] ?: false; 65 $sClassDelimiter = @$aMatches[3] ?: false; 66 $sClassValue = @$aMatches[4] ?: false; 67 $sSrcAttribute = $sPosterAttribute = $sInnerContent = $sStyleAttribute = @$aMatches[5] ?: false; 68 $sSrcDelimiter = $sPosterDelimiter = $sStyleDelimiter = @$aMatches[6] ?: false; 69 $sSrcValue = $sPosterValue = $sBgDeclaration = @$aMatches[7] ?: false; 70 $sSrcsetAttribute = $sPreloadAttribute = $sCssUrl = @$aMatches[8] ?: false; 71 $sSrcsetDelimiter = $sPreloadDelimiter = $sCssUrlValue = @$aMatches[9] ?: false; 72 $sSrcsetValue = $sPreloadValue = @$aMatches[10] ?: false; 73 $sAutoLoadAttribute = $sWidthAttribute = @$aMatches[11] ?: false; 74 $sWidthDelimiter = @$aMatches[12] ?: false; 75 $sWidthValue = @$aMatches[13] ?: 1; 76 $sHeightAttribute = @$aMatches[14] ?: false; 77 $sHeightDelimiter = @$aMatches[15] ?: false; 78 $sHeightValue = @$aMatches[16] ?: 1; 79 80 $bLazyLoaded = false; 81 61 $sFullMatch = false; 62 $sElementName = false; 63 $sClassAttribute = false; 64 $sClassDelimiter = false; 65 $sClassValue = false; 66 $sSrcAttribute = false; 67 $sPosterAttribute = false; 68 $sInnerContent = false; 69 $sStyleAttribute = false; 70 $sSrcDelimiter = false; 71 $sPosterDelimiter = false; 72 $sStyleDelimiter = false; 73 $sSrcValue = false; 74 $sPosterValue = false; 75 $sBgDeclaration = false; 76 $sSrcsetAttribute = false; 77 $sPreloadAttribute = false; 78 $sCssUrl = false; 79 $sSrcsetDelimiter = false; 80 $sPreloadDelimiter = false; 81 $sCssUrlValue = false; 82 $sSrcsetValue = false; 83 $sPreloadValue = false; 84 $sAutoLoadAttribute = false; 85 $sWidthAttribute = false; 86 $sWidthDelimiter = false; 87 $sWidthValue = 1; 88 $sHeightAttribute = false; 89 $sHeightDelimiter = false; 90 $sHeightValue = 1; 91 $bLazyLoaded = false; 92 // $sSrcsetAttribute = $sPreloadAttribute = $sCssUrl = @$aMatches[8] ?: false; 93 // $sSrcsetDelimiter = $sPreloadDelimiter = $sCssUrlValue = @$aMatches[9] ?: false; 94 // $sSrcsetValue = $sPreloadValue = @$aMatches[10] ?: false; 95 // $sAutoLoadAttribute = $sWidthAttribute = @$aMatches[11] ?: false; 96 // $sWidthDelimiter = @$aMatches[12] ?: false; 97 // $sHeightAttribute = @$aMatches[14] ?: false; 98 // $sHeightDelimiter = @$aMatches[15] ?: false; 99 // $sHeightValue = @$aMatches[16] ?: 1; 100 // $sFullMatch = @$aMatches[0] ?: false; 101 // $sElementName = @$aMatches[1] ?: false; 102 // $sClassAttribute = @$aMatches[2] ?: false; 103 // $sClassDelimiter = @$aMatches[3] ?: false; 104 // $sClassValue = @$aMatches[4] ?: false; 105 // $sSrcAttribute = $sPosterAttribute = $sInnerContent = $sStyleAttribute = @$aMatches[5] ?: false; 106 // $sSrcDelimiter = $sPosterDelimiter = $sStyleDelimiter = @$aMatches[6] ?: false; 107 // $sSrcValue = $sPosterValue = $sBgDeclaration = @$aMatches[7] ?: false; 108 // $sWidthValue = @$aMatches[13] ?: 1; 109 if(isset($aMatches[0])) { $sFullMatch = $aMatches[0]; } 110 if(isset($aMatches[1])) { $sElementName = $aMatches[1]; } 111 if(isset($aMatches[2])) { $sClassAttribute = $aMatches[2]; } 112 if(isset($aMatches[3])) { $sClassDelimiter = $aMatches[3]; } 113 if(isset($aMatches[4])) { $sClassValue = $aMatches[4]; } 114 if(isset($aMatches[5])) { 115 $sSrcAttribute = $aMatches[5]; 116 $sPosterAttribute = $aMatches[5]; 117 $sInnerContent = $aMatches[5]; 118 $sStyleAttribute = $aMatches[5]; 119 } 120 if(isset($aMatches[6])) { 121 $sSrcDelimiter = $aMatches[6]; 122 $sPosterDelimiter = $aMatches[6]; 123 $sStyleDelimiter= $aMatches[6]; 124 } 125 if(isset($aMatches[7])) { 126 $sSrcValue = $aMatches[7]; 127 $sPosterValue = $aMatches[7]; 128 $sBgDeclaration = $aMatches[7]; 129 } 130 if(isset($aMatches[8])) { 131 $sPreloadAttribute = $aMatches[8]; 132 $sCssUrl = $aMatches[8]; 133 $sSrcsetAttribute= $aMatches[8]; 134 } 135 if(isset($aMatches[9])) { 136 $sSrcsetDelimiter = $aMatches[9]; 137 $sPreloadDelimiter = $aMatches[9]; 138 $sCssUrlValue = $aMatches[9]; 139 } 140 if(isset($aMatches[10])) { 141 $sSrcsetValue = $aMatches[10]; 142 $sPreloadValue = $aMatches[10]; 143 } 144 if(isset($aMatches[11])) { 145 $sAutoLoadAttribute = $aMatches[11]; 146 $sWidthAttribute = $aMatches[11]; 147 } 148 if(isset($aMatches[12])) { 149 $sWidthDelimiter = $aMatches[12]; 150 } 151 if(isset($aMatches[13])) { 152 $sWidthValue = $aMatches[13]; 153 } 154 if(isset($aMatches[14])) { 155 $sHeightAttribute = $aMatches[14]; 156 } 157 if(isset($aMatches[15])) { 158 $sHeightDelimiter = $aMatches[15]; 159 } 160 if(isset($aMatches[16])) { 161 $sHeightValue = $aMatches[16]; 162 } 82 163 //Return match if it isn't an HTML element 83 164 if ( $sElementName === false ) -
fastcache-by-host-it/tags/1.5.9/src/Core/Webp.php
r3417545 r3440516 26 26 public static function convert( LazyLoad $oLazyLoad, $aMatches ) 27 27 { 28 $elementName = @$aMatches[1] ?: false; 29 $srcValue = @$aMatches[7] ?: false; 30 $cssUrlValue = @$aMatches[9] ?: false; 31 $srcsetValue = @$aMatches[10] ?: false; 28 if(isset($aMatches[1])) { $elementName=$aMatches[1]; } else { $elementName=false; } 29 if(isset($aMatches[7])) { $srcValue = $aMatches[7]; } else { $srcValue = false;} 30 if(isset($aMatches[9])) { $cssUrlValue = $aMatches[9]; } else { $cssUrlValue = false;} 31 if(isset($aMatches[10])) { $srcsetValue = $aMatches[10]; } else { $srcsetValue = false;} 32 33 // $elementName = @$aMatches[1] ?: false; 34 // $srcValue = @$aMatches[7] ?: false; 35 // $cssUrlValue = @$aMatches[9] ?: false; 36 // $srcsetValue = @$aMatches[10] ?: false; 32 37 $newFullMatch = false; 33 38 -
fastcache-by-host-it/trunk/README.txt
r3440400 r3440516 5 5 Tested up to: 6.9.0 6 6 Requires PHP: 8.0 7 Stable Tag: 1.5. 87 Stable Tag: 1.5.9 8 8 License: GPL-2.0+ 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.txt … … 132 132 133 133 == Changelog == 134 1.5.9 135 Fix Some php warning 136 134 137 1.5.8 135 138 Fix for default ttl -
fastcache-by-host-it/trunk/fastcache.php
r3440400 r3440516 17 17 * Plugin URI: https://fastcache.host.it/wordpress/ 18 18 * Description: Abilita il tuo sito Wordpress alla prima vera CDN realizzata PER Wordpress e configurata AD-HOC per il tuo sito. Il massimo della velocità senza difficoltà di setup. 19 * Version: 1.5. 819 * Version: 1.5.9 20 20 * Author: Host.it and JExtensions Store - Alessandro Poletto 21 21 * Author URI: https://fastcache.host.it/alessandropoletto/ … … 44 44 define ( '_WP_EXEC', '1' ); 45 45 define ( '_FASTCACHE_EXEC', 1 ); 46 define ( 'FASTCACHE_VERSION', '1.5. 8' );46 define ( 'FASTCACHE_VERSION', '1.5.9' ); 47 47 define ( 'FASTCACHE_FILE_PATH', __FILE__ ); 48 48 -
fastcache-by-host-it/trunk/src/Core/Combiner.php
r3417545 r3440516 161 161 162 162 // Prevent bots response to be cached 163 if( $isBot) {163 if(isset($isBot)) { 164 164 $aUrl ['id'] = ''; 165 165 } -
fastcache-by-host-it/trunk/src/Core/Html/Callbacks/CombineJsCss.php
r3420501 r3440516 79 79 ); 80 80 $defaultExcludesBottom = array( '.com/recaptcha/api' ); 81 if( $isBot) {81 if(isset($isBot)) { 82 82 $defaultExcludesAlways = array(); 83 83 $defaultExcludesBottom = array(); -
fastcache-by-host-it/trunk/src/Core/Html/Callbacks/LazyLoad.php
r3417545 r3440516 59 59 $aMatches = \FastCache\Core\Webp::convert( $this, $aMatches ); 60 60 } 61 62 $sFullMatch = @$aMatches[0] ?: false; 63 $sElementName = @$aMatches[1] ?: false; 64 $sClassAttribute = @$aMatches[2] ?: false; 65 $sClassDelimiter = @$aMatches[3] ?: false; 66 $sClassValue = @$aMatches[4] ?: false; 67 $sSrcAttribute = $sPosterAttribute = $sInnerContent = $sStyleAttribute = @$aMatches[5] ?: false; 68 $sSrcDelimiter = $sPosterDelimiter = $sStyleDelimiter = @$aMatches[6] ?: false; 69 $sSrcValue = $sPosterValue = $sBgDeclaration = @$aMatches[7] ?: false; 70 $sSrcsetAttribute = $sPreloadAttribute = $sCssUrl = @$aMatches[8] ?: false; 71 $sSrcsetDelimiter = $sPreloadDelimiter = $sCssUrlValue = @$aMatches[9] ?: false; 72 $sSrcsetValue = $sPreloadValue = @$aMatches[10] ?: false; 73 $sAutoLoadAttribute = $sWidthAttribute = @$aMatches[11] ?: false; 74 $sWidthDelimiter = @$aMatches[12] ?: false; 75 $sWidthValue = @$aMatches[13] ?: 1; 76 $sHeightAttribute = @$aMatches[14] ?: false; 77 $sHeightDelimiter = @$aMatches[15] ?: false; 78 $sHeightValue = @$aMatches[16] ?: 1; 79 80 $bLazyLoaded = false; 81 61 $sFullMatch = false; 62 $sElementName = false; 63 $sClassAttribute = false; 64 $sClassDelimiter = false; 65 $sClassValue = false; 66 $sSrcAttribute = false; 67 $sPosterAttribute = false; 68 $sInnerContent = false; 69 $sStyleAttribute = false; 70 $sSrcDelimiter = false; 71 $sPosterDelimiter = false; 72 $sStyleDelimiter = false; 73 $sSrcValue = false; 74 $sPosterValue = false; 75 $sBgDeclaration = false; 76 $sSrcsetAttribute = false; 77 $sPreloadAttribute = false; 78 $sCssUrl = false; 79 $sSrcsetDelimiter = false; 80 $sPreloadDelimiter = false; 81 $sCssUrlValue = false; 82 $sSrcsetValue = false; 83 $sPreloadValue = false; 84 $sAutoLoadAttribute = false; 85 $sWidthAttribute = false; 86 $sWidthDelimiter = false; 87 $sWidthValue = 1; 88 $sHeightAttribute = false; 89 $sHeightDelimiter = false; 90 $sHeightValue = 1; 91 $bLazyLoaded = false; 92 // $sSrcsetAttribute = $sPreloadAttribute = $sCssUrl = @$aMatches[8] ?: false; 93 // $sSrcsetDelimiter = $sPreloadDelimiter = $sCssUrlValue = @$aMatches[9] ?: false; 94 // $sSrcsetValue = $sPreloadValue = @$aMatches[10] ?: false; 95 // $sAutoLoadAttribute = $sWidthAttribute = @$aMatches[11] ?: false; 96 // $sWidthDelimiter = @$aMatches[12] ?: false; 97 // $sHeightAttribute = @$aMatches[14] ?: false; 98 // $sHeightDelimiter = @$aMatches[15] ?: false; 99 // $sHeightValue = @$aMatches[16] ?: 1; 100 // $sFullMatch = @$aMatches[0] ?: false; 101 // $sElementName = @$aMatches[1] ?: false; 102 // $sClassAttribute = @$aMatches[2] ?: false; 103 // $sClassDelimiter = @$aMatches[3] ?: false; 104 // $sClassValue = @$aMatches[4] ?: false; 105 // $sSrcAttribute = $sPosterAttribute = $sInnerContent = $sStyleAttribute = @$aMatches[5] ?: false; 106 // $sSrcDelimiter = $sPosterDelimiter = $sStyleDelimiter = @$aMatches[6] ?: false; 107 // $sSrcValue = $sPosterValue = $sBgDeclaration = @$aMatches[7] ?: false; 108 // $sWidthValue = @$aMatches[13] ?: 1; 109 if(isset($aMatches[0])) { $sFullMatch = $aMatches[0]; } 110 if(isset($aMatches[1])) { $sElementName = $aMatches[1]; } 111 if(isset($aMatches[2])) { $sClassAttribute = $aMatches[2]; } 112 if(isset($aMatches[3])) { $sClassDelimiter = $aMatches[3]; } 113 if(isset($aMatches[4])) { $sClassValue = $aMatches[4]; } 114 if(isset($aMatches[5])) { 115 $sSrcAttribute = $aMatches[5]; 116 $sPosterAttribute = $aMatches[5]; 117 $sInnerContent = $aMatches[5]; 118 $sStyleAttribute = $aMatches[5]; 119 } 120 if(isset($aMatches[6])) { 121 $sSrcDelimiter = $aMatches[6]; 122 $sPosterDelimiter = $aMatches[6]; 123 $sStyleDelimiter= $aMatches[6]; 124 } 125 if(isset($aMatches[7])) { 126 $sSrcValue = $aMatches[7]; 127 $sPosterValue = $aMatches[7]; 128 $sBgDeclaration = $aMatches[7]; 129 } 130 if(isset($aMatches[8])) { 131 $sPreloadAttribute = $aMatches[8]; 132 $sCssUrl = $aMatches[8]; 133 $sSrcsetAttribute= $aMatches[8]; 134 } 135 if(isset($aMatches[9])) { 136 $sSrcsetDelimiter = $aMatches[9]; 137 $sPreloadDelimiter = $aMatches[9]; 138 $sCssUrlValue = $aMatches[9]; 139 } 140 if(isset($aMatches[10])) { 141 $sSrcsetValue = $aMatches[10]; 142 $sPreloadValue = $aMatches[10]; 143 } 144 if(isset($aMatches[11])) { 145 $sAutoLoadAttribute = $aMatches[11]; 146 $sWidthAttribute = $aMatches[11]; 147 } 148 if(isset($aMatches[12])) { 149 $sWidthDelimiter = $aMatches[12]; 150 } 151 if(isset($aMatches[13])) { 152 $sWidthValue = $aMatches[13]; 153 } 154 if(isset($aMatches[14])) { 155 $sHeightAttribute = $aMatches[14]; 156 } 157 if(isset($aMatches[15])) { 158 $sHeightDelimiter = $aMatches[15]; 159 } 160 if(isset($aMatches[16])) { 161 $sHeightValue = $aMatches[16]; 162 } 82 163 //Return match if it isn't an HTML element 83 164 if ( $sElementName === false ) -
fastcache-by-host-it/trunk/src/Core/Webp.php
r3417545 r3440516 26 26 public static function convert( LazyLoad $oLazyLoad, $aMatches ) 27 27 { 28 $elementName = @$aMatches[1] ?: false; 29 $srcValue = @$aMatches[7] ?: false; 30 $cssUrlValue = @$aMatches[9] ?: false; 31 $srcsetValue = @$aMatches[10] ?: false; 28 if(isset($aMatches[1])) { $elementName=$aMatches[1]; } else { $elementName=false; } 29 if(isset($aMatches[7])) { $srcValue = $aMatches[7]; } else { $srcValue = false;} 30 if(isset($aMatches[9])) { $cssUrlValue = $aMatches[9]; } else { $cssUrlValue = false;} 31 if(isset($aMatches[10])) { $srcsetValue = $aMatches[10]; } else { $srcsetValue = false;} 32 33 // $elementName = @$aMatches[1] ?: false; 34 // $srcValue = @$aMatches[7] ?: false; 35 // $cssUrlValue = @$aMatches[9] ?: false; 36 // $srcsetValue = @$aMatches[10] ?: false; 32 37 $newFullMatch = false; 33 38
Note: See TracChangeset
for help on using the changeset viewer.