Changeset 3420309
- Timestamp:
- 12/15/2025 03:56:26 PM (2 months ago)
- Location:
- fastcache-by-host-it
- Files:
-
- 18 edited
- 1 copied
-
tags/1.5.3 (copied) (copied from fastcache-by-host-it/trunk)
-
tags/1.5.3/README.txt (modified) (2 diffs)
-
tags/1.5.3/fastcache.php (modified) (3 diffs)
-
tags/1.5.3/languages/fastcache-it_IT.po (modified) (23 diffs)
-
tags/1.5.3/languages/fastcache.pot (modified) (5 diffs)
-
tags/1.5.3/src/Admin/Settings/Html.php (modified) (1 diff)
-
tags/1.5.3/src/Admin/Settings/Renderer/Setting.php (modified) (3 diffs)
-
tags/1.5.3/src/Admin/Settings/TabSettings.php (modified) (1 diff)
-
tags/1.5.3/src/Host/admin/class-fastcache-admin.php (modified) (1 diff)
-
tags/1.5.3/src/Host/public/class-fastcache-public.php (modified) (1 diff)
-
trunk/README.txt (modified) (2 diffs)
-
trunk/fastcache.php (modified) (3 diffs)
-
trunk/languages/fastcache-it_IT.po (modified) (23 diffs)
-
trunk/languages/fastcache.pot (modified) (5 diffs)
-
trunk/src/Admin/Settings/Html.php (modified) (1 diff)
-
trunk/src/Admin/Settings/Renderer/Setting.php (modified) (3 diffs)
-
trunk/src/Admin/Settings/TabSettings.php (modified) (1 diff)
-
trunk/src/Host/admin/class-fastcache-admin.php (modified) (1 diff)
-
trunk/src/Host/public/class-fastcache-public.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
fastcache-by-host-it/tags/1.5.3/README.txt
r3418273 r3420309 5 5 Tested up to: 6.9.0 6 6 Requires PHP: 8.0 7 Stable Tag: 1.5. 27 Stable Tag: 1.5.3 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.3 135 Some minor fix, Setting of default TTL to 300 sec due to ttl and grace caching method 136 134 137 1.5.2 135 138 Readme and Screenshots -
fastcache-by-host-it/tags/1.5.3/fastcache.php
r3418273 r3420309 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. 219 * Version: 1.5.3 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. 2' );46 define ( 'FASTCACHE_VERSION', '1.5.3' ); 47 47 48 48 define ( 'FASTCACHE_FILE_PATH', __FILE__ ); … … 50 50 define ( 'FASTCACHE_DIR', plugin_dir_path ( FASTCACHE_FILE_PATH ) ); 51 51 define ( 'FASTCACHE_CACHE_DIR', WP_CONTENT_DIR . '/cache/fastcache/' ); 52 52 define ( 'FASTCACHE_DEFAULTTTL' , 300); 53 53 function mainFastCachePluginActivation() { 54 54 $currentSettings = Plugin::getPluginParams()->toArray(); -
fastcache-by-host-it/tags/1.5.3/languages/fastcache-it_IT.po
r3417545 r3420309 1878 1878 "HTTP/2-compliant client before the client requests them. It is, for the most " 1879 1879 "part, a performance technique that can be helpful in loading resources " 1880 "preemptively. If this option is enabled, JSpeedwill communicate to the "1880 "preemptively. If this option is enabled, FastCache will communicate to the " 1881 1881 "server to operate with this technique, keep in mind that this only works on " 1882 1882 "a HTTP/2 compliant server." … … 1885 1885 "a un client conforme a HTTP/2 prima che il client le richieda. È, per la " 1886 1886 "maggior parte, una tecnica di prestazione che può essere utile per caricare " 1887 "risorse preventivamente. Se questa opzione è abilitata, JSpeedcomunicherà "1887 "risorse preventivamente. Se questa opzione è abilitata, FastCache comunicherà " 1888 1888 "al server di operare con questa tecnica, tieni presente che ciò funziona " 1889 1889 "solo su un server conforme a HTTP/2." … … 2384 2384 msgid "" 2385 2385 "If enabled, an additional HTML5 'srcset' attribute will be added for each " 2386 "image that need to be optimized and JSpeedwill automatically create up to 4 "2386 "image that need to be optimized and FastCache will automatically create up to 4 " 2387 2387 "differently-sized images as variations to the base image. The browser will " 2388 2388 "pick up the most correct image based on the device screen size and " … … 2394 2394 msgstr "" 2395 2395 "Se abilitato, verrà aggiunto un attributo HTML5 aggiuntivo 'srcset' per ogni " 2396 "immagine che deve essere ottimizzata e JSpeedcreerà automaticamente fino a "2396 "immagine che deve essere ottimizzata e FastCache creerà automaticamente fino a " 2397 2397 "4 immagini di dimensioni diverse come varianti dell'immagine di base. Il " 2398 2398 "browser sceglierà l'immagine più corretta in base alla dimensione dello " … … 2487 2487 #: src/Admin/Settings/TabSettings.php:500 2488 2488 msgid "" 2489 "If enabled, JSpeedwill generate a 'srcset' attribute for images using 'data-"2489 "If enabled, FastCache will generate a 'srcset' attribute for images using 'data-" 2490 2490 "src' or custom 'data-' attributes, ensuring optimized responsive images for " 2491 2491 "different screen sizes and improving loading performance." … … 2959 2959 #: src/Admin/Settings/TabSettings.php:729 2960 2960 msgid "" 2961 "By default, the TTL is set to 81000 seconds. If you need to use a different "2961 "By default, the TTL is set to 300 seconds. If you need to use a different " 2962 2962 "value, you can enter it as the global default or set it per post type by " 2963 2963 "enabling this option." 2964 2964 msgstr "" 2965 "Per impostazione predefinita, il TTL è impostato su 81000 secondi. Se è "2965 "Per impostazione predefinita, il TTL è impostato su 300 secondi. Se è " 2966 2966 "necessario utilizzare un valore diverso, è possibile inserirlo come " 2967 2967 "predefinito globale o impostarlo per tipo di post abilitando questa opzione." … … 3224 3224 msgid "" 3225 3225 "Cache refresh time in seconds for this post. Entering \"0\" disables the " 3226 "cache. Default: 86400"3226 "cache. Default: 300" 3227 3227 msgstr "" 3228 3228 "Tempo di aggiornamento della cache in secondi per questo post. Inserendo " 3229 "\"0\" si disabilita la cache. Valore predefinito: 86400"3229 "\"0\" si disabilita la cache. Valore predefinito: 300" 3230 3230 3231 3231 #: src/Host/admin/class-fastcache-admin.php:162 … … 3458 3458 3459 3459 #~ msgid "" 3460 #~ "If enabled, JSpeedwill create a WebP version of each image and generate "3460 #~ "If enabled, FastCache will create a WebP version of each image and generate " 3461 3461 #~ "an additional 'srcset' attribute pointing to these WebP images." 3462 3462 #~ msgstr "" 3463 #~ "Se abilitato, JSpeedcreerà una versione WebP di ogni immagine e genererà "3463 #~ "Se abilitato, FastCache creerà una versione WebP di ogni immagine e genererà " 3464 3464 #~ "un ulteriore attributo 'srcset' che punta a queste immagini WebP." 3465 3465 … … 3468 3468 3469 3469 #~ msgid "" 3470 #~ "If enabled, JSpeedwill create an AVIF version of each image and generate "3470 #~ "If enabled, FastCache will create an AVIF version of each image and generate " 3471 3471 #~ "an additional 'srcset' attribute pointing to these AVIF images." 3472 3472 #~ msgstr "" 3473 #~ "Se abilitato, JSpeedcreerà una versione AVIF di ogni immagine e genererà "3473 #~ "Se abilitato, FastCache creerà una versione AVIF di ogni immagine e genererà " 3474 3474 #~ "un ulteriore attributo 'srcset' che punta a queste immagini AVIF." 3475 3475 … … 3489 3489 3490 3490 #~ msgid "" 3491 #~ "You can choose from the predefined set of image sizes that JSpeedshould "3491 #~ "You can choose from the predefined set of image sizes that FastCache should " 3492 3492 #~ "generate for the srcset. If you need custom sizes, please use the 'Custom " 3493 3493 #~ "sizes' field." 3494 3494 #~ msgstr "" 3495 3495 #~ "Puoi scegliere dall'insieme predefinito di dimensioni delle immagini che " 3496 #~ " JSpeeddovrebbe generare per il srcset. Se hai bisogno di dimensioni "3496 #~ "FastCache dovrebbe generare per il srcset. Se hai bisogno di dimensioni " 3497 3497 #~ "personalizzate, utilizza il campo 'Dimensioni personalizzate'." 3498 3498 … … 3710 3710 3711 3711 #~ msgid "" 3712 #~ "If enabled, JSpeedwill remove the query string from the URL of each "3712 #~ "If enabled, FastCache will remove the query string from the URL of each " 3713 3713 #~ "image source in order to facilitate the browser cache usage." 3714 3714 #~ msgstr "" 3715 #~ "Se abilitato, JSpeedrimuoverà la stringa di query dall'URL di ogni "3715 #~ "Se abilitato, FastCache rimuoverà la stringa di query dall'URL di ogni " 3716 3716 #~ "sorgente dell'immagine per facilitare l'utilizzo della cache del browser." 3717 3717 … … 3742 3742 3743 3743 #~ msgid "" 3744 #~ "If enabled, JSpeedwill make use of the browser's native lazy loading for "3744 #~ "If enabled, FastCache will make use of the browser's native lazy loading for " 3745 3745 #~ "images." 3746 3746 #~ msgstr "" 3747 #~ "Se abilitato, JSpeedfarà uso del lazy loading nativo del browser per le "3747 #~ "Se abilitato, FastCache farà uso del lazy loading nativo del browser per le " 3748 3748 #~ "immagini." 3749 3749 … … 3848 3848 3849 3849 #~ msgid "" 3850 #~ "If enabled, JSpeedwill convert PNG images to WebP format. This can "3850 #~ "If enabled, FastCache will convert PNG images to WebP format. This can " 3851 3851 #~ "provide better compression and save more bandwidth." 3852 3852 #~ msgstr "" 3853 #~ "Se abilitato, JSpeedconvertirà le immagini PNG nel formato WebP. Questo "3853 #~ "Se abilitato, FastCache convertirà le immagini PNG nel formato WebP. Questo " 3854 3854 #~ "può fornire una compressione migliore e risparmiare più larghezza di " 3855 3855 #~ "banda." … … 3859 3859 3860 3860 #~ msgid "" 3861 #~ "If enabled, JSpeedwill convert JPEG images to WebP format. This can "3861 #~ "If enabled, FastCache will convert JPEG images to WebP format. This can " 3862 3862 #~ "provide better compression and save more bandwidth." 3863 3863 #~ msgstr "" 3864 #~ "Se abilitato, JSpeedconvertirà le immagini JPEG nel formato WebP. Questo "3864 #~ "Se abilitato, FastCache convertirà le immagini JPEG nel formato WebP. Questo " 3865 3865 #~ "può fornire una compressione migliore e risparmiare più larghezza di " 3866 3866 #~ "banda." … … 3870 3870 3871 3871 #~ msgid "" 3872 #~ "If enabled, JSpeedwill convert GIF images to WebP format. This can "3872 #~ "If enabled, FastCache will convert GIF images to WebP format. This can " 3873 3873 #~ "provide better compression and save more bandwidth." 3874 3874 #~ msgstr "" 3875 #~ "Se abilitato, JSpeedconvertirà le immagini GIF nel formato WebP. Questo "3875 #~ "Se abilitato, FastCache convertirà le immagini GIF nel formato WebP. Questo " 3876 3876 #~ "può fornire una compressione migliore e risparmiare più larghezza di " 3877 3877 #~ "banda." … … 3881 3881 3882 3882 #~ msgid "" 3883 #~ "If enabled, JSpeedwill convert PNG images to AVIF format. This can "3883 #~ "If enabled, FastCache will convert PNG images to AVIF format. This can " 3884 3884 #~ "provide better compression and save more bandwidth." 3885 3885 #~ msgstr "" 3886 #~ "Se abilitato, JSpeedconvertirà le immagini PNG nel formato AVIF. Questo "3886 #~ "Se abilitato, FastCache convertirà le immagini PNG nel formato AVIF. Questo " 3887 3887 #~ "può fornire una compressione migliore e risparmiare più larghezza di " 3888 3888 #~ "banda." … … 3892 3892 3893 3893 #~ msgid "" 3894 #~ "If enabled, JSpeedwill convert JPEG images to AVIF format. This can "3894 #~ "If enabled, FastCache will convert JPEG images to AVIF format. This can " 3895 3895 #~ "provide better compression and save more bandwidth." 3896 3896 #~ msgstr "" 3897 #~ "Se abilitato, JSpeedconvertirà le immagini JPEG nel formato AVIF. Questo "3897 #~ "Se abilitato, FastCache convertirà le immagini JPEG nel formato AVIF. Questo " 3898 3898 #~ "può fornire una compressione migliore e risparmiare più larghezza di " 3899 3899 #~ "banda." … … 3945 3945 3946 3946 #~ msgid "" 3947 #~ "Select the image optimization fallback method to use when JSpeedfails to "3947 #~ "Select the image optimization fallback method to use when FastCache fails to " 3948 3948 #~ "optimize images with an external service." 3949 3949 #~ msgstr "" 3950 3950 #~ "Scegli il metodo di fallback per l'ottimizzazione delle immagini da " 3951 #~ "utilizzare quando JSpeednon riesce ad ottimizzare le immagini con un "3951 #~ "utilizzare quando FastCache non riesce ad ottimizzare le immagini con un " 3952 3952 #~ "servizio esterno." 3953 3953 … … 3976 3976 3977 3977 #~ msgid "" 3978 #~ "If JSpeedfails to optimize an image with an external service, it will "3978 #~ "If FastCache fails to optimize an image with an external service, it will " 3979 3979 #~ "display the original image without any optimization." 3980 3980 #~ msgstr "" 3981 #~ "Se JSpeednon riesce ad ottimizzare un'immagine con un servizio esterno, "3981 #~ "Se FastCache non riesce ad ottimizzare un'immagine con un servizio esterno, " 3982 3982 #~ "verrà visualizzata l'immagine originale senza alcuna ottimizzazione." 3983 3983 … … 3986 3986 3987 3987 #~ msgid "" 3988 #~ "If JSpeedfails to optimize an image with an external service, it will "3988 #~ "If FastCache fails to optimize an image with an external service, it will " 3989 3989 #~ "disable lazy loading and WebP conversion for that image." 3990 3990 #~ msgstr "" 3991 #~ "Se JSpeednon riesce ad ottimizzare un'immagine con un servizio esterno, "3991 #~ "Se FastCache non riesce ad ottimizzare un'immagine con un servizio esterno, " 3992 3992 #~ "disabiliterà lazy loading e conversione WebP per quella immagine." 3993 3993 … … 3996 3996 3997 3997 #~ msgid "" 3998 #~ "If JSpeedfails to optimize an image with an external service, it will "3998 #~ "If FastCache fails to optimize an image with an external service, it will " 3999 3999 #~ "attempt to optimize the image using the local image optimization library." 4000 4000 #~ msgstr "" 4001 #~ "Se JSpeednon riesce ad ottimizzare un'immagine con un servizio esterno, "4001 #~ "Se FastCache non riesce ad ottimizzare un'immagine con un servizio esterno, " 4002 4002 #~ "proverà ad ottimizzare l'immagine utilizzando la libreria di " 4003 4003 #~ "ottimizzazione delle immagini locale." … … 4100 4100 4101 4101 #~ msgid "" 4102 #~ "If enabled, JSpeedwill use an external API for image optimization. You "4102 #~ "If enabled, FastCache will use an external API for image optimization. You " 4103 4103 #~ "need to configure the API credentials below." 4104 4104 #~ msgstr "" 4105 #~ "Se abilitato, JSpeedutilizzerà una API esterna per l'ottimizzazione "4105 #~ "Se abilitato, FastCache utilizzerà una API esterna per l'ottimizzazione " 4106 4106 #~ "dell'immagine. Devi configurare le credenziali API di seguito." 4107 4107 … … 4137 4137 4138 4138 #~ msgid "" 4139 #~ "If enabled, JSpeedwill cache the responses from the external image "4139 #~ "If enabled, FastCache will cache the responses from the external image " 4140 4140 #~ "optimization API to reduce API usage and improve performance." 4141 4141 #~ msgstr "" 4142 #~ "Se abilitato, JSpeedmemorizzerà nella cache le risposte dalla API "4142 #~ "Se abilitato, FastCache memorizzerà nella cache le risposte dalla API " 4143 4143 #~ "esterna di ottimizzazione delle immagini per ridurre l'uso della API e " 4144 4144 #~ "migliorare le prestazioni." -
fastcache-by-host-it/tags/1.5.3/languages/fastcache.pot
r3417545 r3420309 1610 1610 "HTTP/2-compliant client before the client requests them. It is, for the most " 1611 1611 "part, a performance technique that can be helpful in loading resources " 1612 "preemptively. If this option is enabled, JSpeedwill communicate to the "1612 "preemptively. If this option is enabled, FastCache will communicate to the " 1613 1613 "server to operate with this technique, keep in mind that this only works on " 1614 1614 "a HTTP/2 compliant server." … … 1987 1987 msgid "" 1988 1988 "If enabled, an additional HTML5 'srcset' attribute will be added for each " 1989 "image that need to be optimized and JSpeedwill automatically create up to 4 "1989 "image that need to be optimized and FastCache will automatically create up to 4 " 1990 1990 "differently-sized images as variations to the base image. The browser will " 1991 1991 "pick up the most correct image based on the device screen size and " … … 2061 2061 #: src/Admin/Settings/TabSettings.php:500 2062 2062 msgid "" 2063 "If enabled, JSpeedwill generate a 'srcset' attribute for images using 'data-"2063 "If enabled, FastCache will generate a 'srcset' attribute for images using 'data-" 2064 2064 "src' or custom 'data-' attributes, ensuring optimized responsive images for " 2065 2065 "different screen sizes and improving loading performance." … … 2434 2434 #: src/Admin/Settings/TabSettings.php:729 2435 2435 msgid "" 2436 "By default, the TTL is set to 81000 seconds. If you need to use a different "2436 "By default, the TTL is set to 300 seconds. If you need to use a different " 2437 2437 "value, you can enter it as the global default or set it per post type by " 2438 2438 "enabling this option." … … 2671 2671 msgid "" 2672 2672 "Cache refresh time in seconds for this post. Entering \"0\" disables the " 2673 "cache. Default: 86400"2673 "cache. Default: 300" 2674 2674 msgstr "" 2675 2675 -
fastcache-by-host-it/tags/1.5.3/src/Admin/Settings/Html.php
r3417545 r3420309 434 434 $field_id = "fastcache_settings_{$settingName}_{$pt}"; 435 435 436 // Valore salvato o fallback 86400437 $value = isset( $activeValues[$pt] ) ? $activeValues[$pt] : ' 86400';436 // Valore salvato o fallback 300 437 $value = isset( $activeValues[$pt] ) ? $activeValues[$pt] : '300'; 438 438 439 439 // Render del singolo campo -
fastcache-by-host-it/tags/1.5.3/src/Admin/Settings/Renderer/Setting.php
r3417545 r3420309 79 79 ]; 80 80 81 echo Html::_ ( 'select', 'cache_lifetime', ' 86400', $aOptions );81 echo Html::_ ( 'select', 'cache_lifetime', '300', $aOptions ); 82 82 } 83 83 public static function html_minify_level() { … … 616 616 $aSavedSettings = get_option( 'fastcache_settings' ); 617 617 $fastcacheEnableChecked = isset($aSavedSettings['fastcache-enable']) ? 'checked="checked"' : ''; 618 $defaultTTLValue = isset($aSavedSettings['default-ttl']) ? $aSavedSettings['default-ttl'] : 86400;618 $defaultTTLValue = isset($aSavedSettings['default-ttl']) ? $aSavedSettings['default-ttl'] : FASTCACHE_DEFAULTTTL; 619 619 $fastCacheTextDescription = __ ('If selected, activates communication with the CDN', 'fastcache'); 620 620 if($fastcacheEnableChecked) { … … 789 789 790 790 public static function fastcache_cdn_default_ttl() { 791 echo Html::_ ( 'text', 'default-ttl', ' 86400', '' );791 echo Html::_ ( 'text', 'default-ttl', '300', '' ); 792 792 } 793 793 public static function fastcache_cdn_types_ttl() { -
fastcache-by-host-it/tags/1.5.3/src/Admin/Settings/TabSettings.php
r3417545 r3420309 727 727 'fastcache_cdn_enable_ttl' => [ 728 728 __ ( 'Enable TTL', 'fastcache' ), 729 __ ( 'By default, the TTL is set to 81000 seconds. If you need to use a different value, you can enter it as the global default or set it per post type by enabling this option.', 'fastcache' )729 __ ( 'By default, the TTL is set to 300 seconds. If you need to use a different value, you can enter it as the global default or set it per post type by enabling this option.', 'fastcache' ) 730 730 ], 731 731 'fastcache_cdn_default_ttl_notfound_set' => [ -
fastcache-by-host-it/tags/1.5.3/src/Host/admin/class-fastcache-admin.php
r3417545 r3420309 85 85 'name' => 'ttl', 86 86 'title' => 'TTL', 87 'description' => __ ( 'Cache refresh time in seconds for this post. Entering "0" disables the cache. Default: 86400'),87 'description' => __ ( 'Cache refresh time in seconds for this post. Entering "0" disables the cache. Default: ' . FASTCACHE_DEFAULTTTL ), 88 88 'type' => 'text', 89 89 'scope' => array ( -
fastcache-by-host-it/tags/1.5.3/src/Host/public/class-fastcache-public.php
r3417545 r3420309 184 184 $enable = 0; 185 185 $pt = 'post'; 186 if (! isset ( $post->post_type )) { 187 $ttl = 86400; 188 } else { 186 $ttl = 300; 187 if ( isset ( $post->post_type )) { 189 188 $pt = $post->post_type; 190 189 191 190 $settings = get_option ( FASTCACHEHOST_HOST_PLUGINNAME . '_settings' ); 192 191 $enable = 0; 192 $token = ""; 193 193 if (isset ( $settings ['fastcache-enable'] )) { 194 194 $enable = $settings ['fastcache-enable']; 195 195 } 196 $token = "";197 196 if (isset ( $settings ['text-token'] )) { 198 197 $token = $settings ['text-token']; 199 198 } 200 199 /* 200 * se ho un ttl impostato per un certo posttype e se è superiore a "0" 201 * allora lo uso come valore di ttl 202 */ 201 203 if (isset ( $settings ['ttl-post-types'] [$pt] ) && trim ( $settings ['ttl-post-types'] [$pt] ) != "" && $settings ['ttl-post-types'] [$pt] > 0) { 202 204 // echo "trovato post type ".$pt . " set ttl: " . $settings['ttl-post-types'][$pt] . "<br>" ; 203 205 $ttl = $settings ['ttl-post-types'] [$pt]; 204 } else if (isset ( $settings ['default-ttl'] ) && trim ( $settings ['default-ttl'] ) != "" && $settings ['default-ttl'] > 0 && isset ( $settings ['fastcache_cdn_default_ttl_notfound_set'] ) && $settings ['fastcache_cdn_default_ttl_notfound_set'] == 1) { 206 } else if ( 207 /* 208 * ALTRIMENTI SE 209 * se ho un impostato il flag tale per cui in caso di NON ttl imposto il default 210 * allora uso come ttl il default_ttl generico per l'applicazione 211 */ 212 isset ( $settings ['default-ttl'] ) 213 && trim ( $settings ['default-ttl'] ) != "" 214 && $settings ['default-ttl'] > 0 215 && isset ( $settings ['fastcache_cdn_default_ttl_notfound_set'] ) 216 && $settings ['fastcache_cdn_default_ttl_notfound_set'] == 1 217 ) { 205 218 // echo "trovato default ttl: " . $settings['default-ttl'] . "<br>" ; 206 219 $ttl = $settings ['default-ttl']; 207 } else { 208 if (isset ( $settings ['fastcache_cdn_default_ttl_notfound_set'] ) && $settings ['fastcache_cdn_default_ttl_notfound_set'] == 1 ) { 209 $ttl = $settings ['default-ttl'] ?: 86400; 210 } else { 211 $ttl = 0; 212 } 213 } 220 } else if (isset ( $settings ['fastcache_cdn_default_ttl_notfound_set'] ) && $settings ['fastcache_cdn_default_ttl_notfound_set'] == 1 ) { 221 /* 222 * altrimenti SE 223 * se ho un impostato il flag tale per cui in caso di NON ttl imposto il default 224 * FASTCACHE_DEFAULTTTL 225 */ 226 227 $ttl = $settings ['default-ttl'] ?: FASTCACHE_DEFAULTTTL; 228 } 229 214 230 } 215 231 if (is_feed ()) { -
fastcache-by-host-it/trunk/README.txt
r3418273 r3420309 5 5 Tested up to: 6.9.0 6 6 Requires PHP: 8.0 7 Stable Tag: 1.5. 27 Stable Tag: 1.5.3 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.3 135 Some minor fix, Setting of default TTL to 300 sec due to ttl and grace caching method 136 134 137 1.5.2 135 138 Readme and Screenshots -
fastcache-by-host-it/trunk/fastcache.php
r3418273 r3420309 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. 219 * Version: 1.5.3 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. 2' );46 define ( 'FASTCACHE_VERSION', '1.5.3' ); 47 47 48 48 define ( 'FASTCACHE_FILE_PATH', __FILE__ ); … … 50 50 define ( 'FASTCACHE_DIR', plugin_dir_path ( FASTCACHE_FILE_PATH ) ); 51 51 define ( 'FASTCACHE_CACHE_DIR', WP_CONTENT_DIR . '/cache/fastcache/' ); 52 52 define ( 'FASTCACHE_DEFAULTTTL' , 300); 53 53 function mainFastCachePluginActivation() { 54 54 $currentSettings = Plugin::getPluginParams()->toArray(); -
fastcache-by-host-it/trunk/languages/fastcache-it_IT.po
r3417545 r3420309 1878 1878 "HTTP/2-compliant client before the client requests them. It is, for the most " 1879 1879 "part, a performance technique that can be helpful in loading resources " 1880 "preemptively. If this option is enabled, JSpeedwill communicate to the "1880 "preemptively. If this option is enabled, FastCache will communicate to the " 1881 1881 "server to operate with this technique, keep in mind that this only works on " 1882 1882 "a HTTP/2 compliant server." … … 1885 1885 "a un client conforme a HTTP/2 prima che il client le richieda. È, per la " 1886 1886 "maggior parte, una tecnica di prestazione che può essere utile per caricare " 1887 "risorse preventivamente. Se questa opzione è abilitata, JSpeedcomunicherà "1887 "risorse preventivamente. Se questa opzione è abilitata, FastCache comunicherà " 1888 1888 "al server di operare con questa tecnica, tieni presente che ciò funziona " 1889 1889 "solo su un server conforme a HTTP/2." … … 2384 2384 msgid "" 2385 2385 "If enabled, an additional HTML5 'srcset' attribute will be added for each " 2386 "image that need to be optimized and JSpeedwill automatically create up to 4 "2386 "image that need to be optimized and FastCache will automatically create up to 4 " 2387 2387 "differently-sized images as variations to the base image. The browser will " 2388 2388 "pick up the most correct image based on the device screen size and " … … 2394 2394 msgstr "" 2395 2395 "Se abilitato, verrà aggiunto un attributo HTML5 aggiuntivo 'srcset' per ogni " 2396 "immagine che deve essere ottimizzata e JSpeedcreerà automaticamente fino a "2396 "immagine che deve essere ottimizzata e FastCache creerà automaticamente fino a " 2397 2397 "4 immagini di dimensioni diverse come varianti dell'immagine di base. Il " 2398 2398 "browser sceglierà l'immagine più corretta in base alla dimensione dello " … … 2487 2487 #: src/Admin/Settings/TabSettings.php:500 2488 2488 msgid "" 2489 "If enabled, JSpeedwill generate a 'srcset' attribute for images using 'data-"2489 "If enabled, FastCache will generate a 'srcset' attribute for images using 'data-" 2490 2490 "src' or custom 'data-' attributes, ensuring optimized responsive images for " 2491 2491 "different screen sizes and improving loading performance." … … 2959 2959 #: src/Admin/Settings/TabSettings.php:729 2960 2960 msgid "" 2961 "By default, the TTL is set to 81000 seconds. If you need to use a different "2961 "By default, the TTL is set to 300 seconds. If you need to use a different " 2962 2962 "value, you can enter it as the global default or set it per post type by " 2963 2963 "enabling this option." 2964 2964 msgstr "" 2965 "Per impostazione predefinita, il TTL è impostato su 81000 secondi. Se è "2965 "Per impostazione predefinita, il TTL è impostato su 300 secondi. Se è " 2966 2966 "necessario utilizzare un valore diverso, è possibile inserirlo come " 2967 2967 "predefinito globale o impostarlo per tipo di post abilitando questa opzione." … … 3224 3224 msgid "" 3225 3225 "Cache refresh time in seconds for this post. Entering \"0\" disables the " 3226 "cache. Default: 86400"3226 "cache. Default: 300" 3227 3227 msgstr "" 3228 3228 "Tempo di aggiornamento della cache in secondi per questo post. Inserendo " 3229 "\"0\" si disabilita la cache. Valore predefinito: 86400"3229 "\"0\" si disabilita la cache. Valore predefinito: 300" 3230 3230 3231 3231 #: src/Host/admin/class-fastcache-admin.php:162 … … 3458 3458 3459 3459 #~ msgid "" 3460 #~ "If enabled, JSpeedwill create a WebP version of each image and generate "3460 #~ "If enabled, FastCache will create a WebP version of each image and generate " 3461 3461 #~ "an additional 'srcset' attribute pointing to these WebP images." 3462 3462 #~ msgstr "" 3463 #~ "Se abilitato, JSpeedcreerà una versione WebP di ogni immagine e genererà "3463 #~ "Se abilitato, FastCache creerà una versione WebP di ogni immagine e genererà " 3464 3464 #~ "un ulteriore attributo 'srcset' che punta a queste immagini WebP." 3465 3465 … … 3468 3468 3469 3469 #~ msgid "" 3470 #~ "If enabled, JSpeedwill create an AVIF version of each image and generate "3470 #~ "If enabled, FastCache will create an AVIF version of each image and generate " 3471 3471 #~ "an additional 'srcset' attribute pointing to these AVIF images." 3472 3472 #~ msgstr "" 3473 #~ "Se abilitato, JSpeedcreerà una versione AVIF di ogni immagine e genererà "3473 #~ "Se abilitato, FastCache creerà una versione AVIF di ogni immagine e genererà " 3474 3474 #~ "un ulteriore attributo 'srcset' che punta a queste immagini AVIF." 3475 3475 … … 3489 3489 3490 3490 #~ msgid "" 3491 #~ "You can choose from the predefined set of image sizes that JSpeedshould "3491 #~ "You can choose from the predefined set of image sizes that FastCache should " 3492 3492 #~ "generate for the srcset. If you need custom sizes, please use the 'Custom " 3493 3493 #~ "sizes' field." 3494 3494 #~ msgstr "" 3495 3495 #~ "Puoi scegliere dall'insieme predefinito di dimensioni delle immagini che " 3496 #~ " JSpeeddovrebbe generare per il srcset. Se hai bisogno di dimensioni "3496 #~ "FastCache dovrebbe generare per il srcset. Se hai bisogno di dimensioni " 3497 3497 #~ "personalizzate, utilizza il campo 'Dimensioni personalizzate'." 3498 3498 … … 3710 3710 3711 3711 #~ msgid "" 3712 #~ "If enabled, JSpeedwill remove the query string from the URL of each "3712 #~ "If enabled, FastCache will remove the query string from the URL of each " 3713 3713 #~ "image source in order to facilitate the browser cache usage." 3714 3714 #~ msgstr "" 3715 #~ "Se abilitato, JSpeedrimuoverà la stringa di query dall'URL di ogni "3715 #~ "Se abilitato, FastCache rimuoverà la stringa di query dall'URL di ogni " 3716 3716 #~ "sorgente dell'immagine per facilitare l'utilizzo della cache del browser." 3717 3717 … … 3742 3742 3743 3743 #~ msgid "" 3744 #~ "If enabled, JSpeedwill make use of the browser's native lazy loading for "3744 #~ "If enabled, FastCache will make use of the browser's native lazy loading for " 3745 3745 #~ "images." 3746 3746 #~ msgstr "" 3747 #~ "Se abilitato, JSpeedfarà uso del lazy loading nativo del browser per le "3747 #~ "Se abilitato, FastCache farà uso del lazy loading nativo del browser per le " 3748 3748 #~ "immagini." 3749 3749 … … 3848 3848 3849 3849 #~ msgid "" 3850 #~ "If enabled, JSpeedwill convert PNG images to WebP format. This can "3850 #~ "If enabled, FastCache will convert PNG images to WebP format. This can " 3851 3851 #~ "provide better compression and save more bandwidth." 3852 3852 #~ msgstr "" 3853 #~ "Se abilitato, JSpeedconvertirà le immagini PNG nel formato WebP. Questo "3853 #~ "Se abilitato, FastCache convertirà le immagini PNG nel formato WebP. Questo " 3854 3854 #~ "può fornire una compressione migliore e risparmiare più larghezza di " 3855 3855 #~ "banda." … … 3859 3859 3860 3860 #~ msgid "" 3861 #~ "If enabled, JSpeedwill convert JPEG images to WebP format. This can "3861 #~ "If enabled, FastCache will convert JPEG images to WebP format. This can " 3862 3862 #~ "provide better compression and save more bandwidth." 3863 3863 #~ msgstr "" 3864 #~ "Se abilitato, JSpeedconvertirà le immagini JPEG nel formato WebP. Questo "3864 #~ "Se abilitato, FastCache convertirà le immagini JPEG nel formato WebP. Questo " 3865 3865 #~ "può fornire una compressione migliore e risparmiare più larghezza di " 3866 3866 #~ "banda." … … 3870 3870 3871 3871 #~ msgid "" 3872 #~ "If enabled, JSpeedwill convert GIF images to WebP format. This can "3872 #~ "If enabled, FastCache will convert GIF images to WebP format. This can " 3873 3873 #~ "provide better compression and save more bandwidth." 3874 3874 #~ msgstr "" 3875 #~ "Se abilitato, JSpeedconvertirà le immagini GIF nel formato WebP. Questo "3875 #~ "Se abilitato, FastCache convertirà le immagini GIF nel formato WebP. Questo " 3876 3876 #~ "può fornire una compressione migliore e risparmiare più larghezza di " 3877 3877 #~ "banda." … … 3881 3881 3882 3882 #~ msgid "" 3883 #~ "If enabled, JSpeedwill convert PNG images to AVIF format. This can "3883 #~ "If enabled, FastCache will convert PNG images to AVIF format. This can " 3884 3884 #~ "provide better compression and save more bandwidth." 3885 3885 #~ msgstr "" 3886 #~ "Se abilitato, JSpeedconvertirà le immagini PNG nel formato AVIF. Questo "3886 #~ "Se abilitato, FastCache convertirà le immagini PNG nel formato AVIF. Questo " 3887 3887 #~ "può fornire una compressione migliore e risparmiare più larghezza di " 3888 3888 #~ "banda." … … 3892 3892 3893 3893 #~ msgid "" 3894 #~ "If enabled, JSpeedwill convert JPEG images to AVIF format. This can "3894 #~ "If enabled, FastCache will convert JPEG images to AVIF format. This can " 3895 3895 #~ "provide better compression and save more bandwidth." 3896 3896 #~ msgstr "" 3897 #~ "Se abilitato, JSpeedconvertirà le immagini JPEG nel formato AVIF. Questo "3897 #~ "Se abilitato, FastCache convertirà le immagini JPEG nel formato AVIF. Questo " 3898 3898 #~ "può fornire una compressione migliore e risparmiare più larghezza di " 3899 3899 #~ "banda." … … 3945 3945 3946 3946 #~ msgid "" 3947 #~ "Select the image optimization fallback method to use when JSpeedfails to "3947 #~ "Select the image optimization fallback method to use when FastCache fails to " 3948 3948 #~ "optimize images with an external service." 3949 3949 #~ msgstr "" 3950 3950 #~ "Scegli il metodo di fallback per l'ottimizzazione delle immagini da " 3951 #~ "utilizzare quando JSpeednon riesce ad ottimizzare le immagini con un "3951 #~ "utilizzare quando FastCache non riesce ad ottimizzare le immagini con un " 3952 3952 #~ "servizio esterno." 3953 3953 … … 3976 3976 3977 3977 #~ msgid "" 3978 #~ "If JSpeedfails to optimize an image with an external service, it will "3978 #~ "If FastCache fails to optimize an image with an external service, it will " 3979 3979 #~ "display the original image without any optimization." 3980 3980 #~ msgstr "" 3981 #~ "Se JSpeednon riesce ad ottimizzare un'immagine con un servizio esterno, "3981 #~ "Se FastCache non riesce ad ottimizzare un'immagine con un servizio esterno, " 3982 3982 #~ "verrà visualizzata l'immagine originale senza alcuna ottimizzazione." 3983 3983 … … 3986 3986 3987 3987 #~ msgid "" 3988 #~ "If JSpeedfails to optimize an image with an external service, it will "3988 #~ "If FastCache fails to optimize an image with an external service, it will " 3989 3989 #~ "disable lazy loading and WebP conversion for that image." 3990 3990 #~ msgstr "" 3991 #~ "Se JSpeednon riesce ad ottimizzare un'immagine con un servizio esterno, "3991 #~ "Se FastCache non riesce ad ottimizzare un'immagine con un servizio esterno, " 3992 3992 #~ "disabiliterà lazy loading e conversione WebP per quella immagine." 3993 3993 … … 3996 3996 3997 3997 #~ msgid "" 3998 #~ "If JSpeedfails to optimize an image with an external service, it will "3998 #~ "If FastCache fails to optimize an image with an external service, it will " 3999 3999 #~ "attempt to optimize the image using the local image optimization library." 4000 4000 #~ msgstr "" 4001 #~ "Se JSpeednon riesce ad ottimizzare un'immagine con un servizio esterno, "4001 #~ "Se FastCache non riesce ad ottimizzare un'immagine con un servizio esterno, " 4002 4002 #~ "proverà ad ottimizzare l'immagine utilizzando la libreria di " 4003 4003 #~ "ottimizzazione delle immagini locale." … … 4100 4100 4101 4101 #~ msgid "" 4102 #~ "If enabled, JSpeedwill use an external API for image optimization. You "4102 #~ "If enabled, FastCache will use an external API for image optimization. You " 4103 4103 #~ "need to configure the API credentials below." 4104 4104 #~ msgstr "" 4105 #~ "Se abilitato, JSpeedutilizzerà una API esterna per l'ottimizzazione "4105 #~ "Se abilitato, FastCache utilizzerà una API esterna per l'ottimizzazione " 4106 4106 #~ "dell'immagine. Devi configurare le credenziali API di seguito." 4107 4107 … … 4137 4137 4138 4138 #~ msgid "" 4139 #~ "If enabled, JSpeedwill cache the responses from the external image "4139 #~ "If enabled, FastCache will cache the responses from the external image " 4140 4140 #~ "optimization API to reduce API usage and improve performance." 4141 4141 #~ msgstr "" 4142 #~ "Se abilitato, JSpeedmemorizzerà nella cache le risposte dalla API "4142 #~ "Se abilitato, FastCache memorizzerà nella cache le risposte dalla API " 4143 4143 #~ "esterna di ottimizzazione delle immagini per ridurre l'uso della API e " 4144 4144 #~ "migliorare le prestazioni." -
fastcache-by-host-it/trunk/languages/fastcache.pot
r3417545 r3420309 1610 1610 "HTTP/2-compliant client before the client requests them. It is, for the most " 1611 1611 "part, a performance technique that can be helpful in loading resources " 1612 "preemptively. If this option is enabled, JSpeedwill communicate to the "1612 "preemptively. If this option is enabled, FastCache will communicate to the " 1613 1613 "server to operate with this technique, keep in mind that this only works on " 1614 1614 "a HTTP/2 compliant server." … … 1987 1987 msgid "" 1988 1988 "If enabled, an additional HTML5 'srcset' attribute will be added for each " 1989 "image that need to be optimized and JSpeedwill automatically create up to 4 "1989 "image that need to be optimized and FastCache will automatically create up to 4 " 1990 1990 "differently-sized images as variations to the base image. The browser will " 1991 1991 "pick up the most correct image based on the device screen size and " … … 2061 2061 #: src/Admin/Settings/TabSettings.php:500 2062 2062 msgid "" 2063 "If enabled, JSpeedwill generate a 'srcset' attribute for images using 'data-"2063 "If enabled, FastCache will generate a 'srcset' attribute for images using 'data-" 2064 2064 "src' or custom 'data-' attributes, ensuring optimized responsive images for " 2065 2065 "different screen sizes and improving loading performance." … … 2434 2434 #: src/Admin/Settings/TabSettings.php:729 2435 2435 msgid "" 2436 "By default, the TTL is set to 81000 seconds. If you need to use a different "2436 "By default, the TTL is set to 300 seconds. If you need to use a different " 2437 2437 "value, you can enter it as the global default or set it per post type by " 2438 2438 "enabling this option." … … 2671 2671 msgid "" 2672 2672 "Cache refresh time in seconds for this post. Entering \"0\" disables the " 2673 "cache. Default: 86400"2673 "cache. Default: 300" 2674 2674 msgstr "" 2675 2675 -
fastcache-by-host-it/trunk/src/Admin/Settings/Html.php
r3417545 r3420309 434 434 $field_id = "fastcache_settings_{$settingName}_{$pt}"; 435 435 436 // Valore salvato o fallback 86400437 $value = isset( $activeValues[$pt] ) ? $activeValues[$pt] : ' 86400';436 // Valore salvato o fallback 300 437 $value = isset( $activeValues[$pt] ) ? $activeValues[$pt] : '300'; 438 438 439 439 // Render del singolo campo -
fastcache-by-host-it/trunk/src/Admin/Settings/Renderer/Setting.php
r3417545 r3420309 79 79 ]; 80 80 81 echo Html::_ ( 'select', 'cache_lifetime', ' 86400', $aOptions );81 echo Html::_ ( 'select', 'cache_lifetime', '300', $aOptions ); 82 82 } 83 83 public static function html_minify_level() { … … 616 616 $aSavedSettings = get_option( 'fastcache_settings' ); 617 617 $fastcacheEnableChecked = isset($aSavedSettings['fastcache-enable']) ? 'checked="checked"' : ''; 618 $defaultTTLValue = isset($aSavedSettings['default-ttl']) ? $aSavedSettings['default-ttl'] : 86400;618 $defaultTTLValue = isset($aSavedSettings['default-ttl']) ? $aSavedSettings['default-ttl'] : FASTCACHE_DEFAULTTTL; 619 619 $fastCacheTextDescription = __ ('If selected, activates communication with the CDN', 'fastcache'); 620 620 if($fastcacheEnableChecked) { … … 789 789 790 790 public static function fastcache_cdn_default_ttl() { 791 echo Html::_ ( 'text', 'default-ttl', ' 86400', '' );791 echo Html::_ ( 'text', 'default-ttl', '300', '' ); 792 792 } 793 793 public static function fastcache_cdn_types_ttl() { -
fastcache-by-host-it/trunk/src/Admin/Settings/TabSettings.php
r3417545 r3420309 727 727 'fastcache_cdn_enable_ttl' => [ 728 728 __ ( 'Enable TTL', 'fastcache' ), 729 __ ( 'By default, the TTL is set to 81000 seconds. If you need to use a different value, you can enter it as the global default or set it per post type by enabling this option.', 'fastcache' )729 __ ( 'By default, the TTL is set to 300 seconds. If you need to use a different value, you can enter it as the global default or set it per post type by enabling this option.', 'fastcache' ) 730 730 ], 731 731 'fastcache_cdn_default_ttl_notfound_set' => [ -
fastcache-by-host-it/trunk/src/Host/admin/class-fastcache-admin.php
r3417545 r3420309 85 85 'name' => 'ttl', 86 86 'title' => 'TTL', 87 'description' => __ ( 'Cache refresh time in seconds for this post. Entering "0" disables the cache. Default: 86400'),87 'description' => __ ( 'Cache refresh time in seconds for this post. Entering "0" disables the cache. Default: ' . FASTCACHE_DEFAULTTTL ), 88 88 'type' => 'text', 89 89 'scope' => array ( -
fastcache-by-host-it/trunk/src/Host/public/class-fastcache-public.php
r3417545 r3420309 184 184 $enable = 0; 185 185 $pt = 'post'; 186 if (! isset ( $post->post_type )) { 187 $ttl = 86400; 188 } else { 186 $ttl = 300; 187 if ( isset ( $post->post_type )) { 189 188 $pt = $post->post_type; 190 189 191 190 $settings = get_option ( FASTCACHEHOST_HOST_PLUGINNAME . '_settings' ); 192 191 $enable = 0; 192 $token = ""; 193 193 if (isset ( $settings ['fastcache-enable'] )) { 194 194 $enable = $settings ['fastcache-enable']; 195 195 } 196 $token = "";197 196 if (isset ( $settings ['text-token'] )) { 198 197 $token = $settings ['text-token']; 199 198 } 200 199 /* 200 * se ho un ttl impostato per un certo posttype e se è superiore a "0" 201 * allora lo uso come valore di ttl 202 */ 201 203 if (isset ( $settings ['ttl-post-types'] [$pt] ) && trim ( $settings ['ttl-post-types'] [$pt] ) != "" && $settings ['ttl-post-types'] [$pt] > 0) { 202 204 // echo "trovato post type ".$pt . " set ttl: " . $settings['ttl-post-types'][$pt] . "<br>" ; 203 205 $ttl = $settings ['ttl-post-types'] [$pt]; 204 } else if (isset ( $settings ['default-ttl'] ) && trim ( $settings ['default-ttl'] ) != "" && $settings ['default-ttl'] > 0 && isset ( $settings ['fastcache_cdn_default_ttl_notfound_set'] ) && $settings ['fastcache_cdn_default_ttl_notfound_set'] == 1) { 206 } else if ( 207 /* 208 * ALTRIMENTI SE 209 * se ho un impostato il flag tale per cui in caso di NON ttl imposto il default 210 * allora uso come ttl il default_ttl generico per l'applicazione 211 */ 212 isset ( $settings ['default-ttl'] ) 213 && trim ( $settings ['default-ttl'] ) != "" 214 && $settings ['default-ttl'] > 0 215 && isset ( $settings ['fastcache_cdn_default_ttl_notfound_set'] ) 216 && $settings ['fastcache_cdn_default_ttl_notfound_set'] == 1 217 ) { 205 218 // echo "trovato default ttl: " . $settings['default-ttl'] . "<br>" ; 206 219 $ttl = $settings ['default-ttl']; 207 } else { 208 if (isset ( $settings ['fastcache_cdn_default_ttl_notfound_set'] ) && $settings ['fastcache_cdn_default_ttl_notfound_set'] == 1 ) { 209 $ttl = $settings ['default-ttl'] ?: 86400; 210 } else { 211 $ttl = 0; 212 } 213 } 220 } else if (isset ( $settings ['fastcache_cdn_default_ttl_notfound_set'] ) && $settings ['fastcache_cdn_default_ttl_notfound_set'] == 1 ) { 221 /* 222 * altrimenti SE 223 * se ho un impostato il flag tale per cui in caso di NON ttl imposto il default 224 * FASTCACHE_DEFAULTTTL 225 */ 226 227 $ttl = $settings ['default-ttl'] ?: FASTCACHE_DEFAULTTTL; 228 } 229 214 230 } 215 231 if (is_feed ()) {
Note: See TracChangeset
for help on using the changeset viewer.