Changeset 3465833
- Timestamp:
- 02/20/2026 01:29:15 PM (6 weeks ago)
- Location:
- fastcache-by-host-it
- Files:
-
- 4 edited
- 15 copied
-
tags/1.5.17 (copied) (copied from fastcache-by-host-it/trunk)
-
tags/1.5.17/README.txt (copied) (copied from fastcache-by-host-it/trunk/README.txt) (2 diffs)
-
tags/1.5.17/fastcache.php (copied) (copied from fastcache-by-host-it/trunk/fastcache.php) (2 diffs)
-
tags/1.5.17/media/js/tabs-state.js (copied) (copied from fastcache-by-host-it/trunk/media/js/tabs-state.js)
-
tags/1.5.17/src/Admin.php (copied) (copied from fastcache-by-host-it/trunk/src/Admin.php)
-
tags/1.5.17/src/Admin/Settings/Renderer/Setting.php (copied) (copied from fastcache-by-host-it/trunk/src/Admin/Settings/Renderer/Setting.php)
-
tags/1.5.17/src/Admin/templates (copied) (copied from fastcache-by-host-it/trunk/src/Admin/templates)
-
tags/1.5.17/src/Admin/templates/admin (copied) (copied from fastcache-by-host-it/trunk/src/Admin/templates/admin)
-
tags/1.5.17/src/Admin/templates/compiled (copied) (copied from fastcache-by-host-it/trunk/src/Admin/templates/compiled)
-
tags/1.5.17/src/Admin/templates/compiled/46326b4df04382cb68b5bc29da6400fa1b43533f.php (copied) (copied from fastcache-by-host-it/trunk/src/Admin/templates/compiled/46326b4df04382cb68b5bc29da6400fa1b43533f.php)
-
tags/1.5.17/src/Admin/templates/index.html (copied) (copied from fastcache-by-host-it/trunk/src/Admin/templates/index.html)
-
tags/1.5.17/src/Core/PageCache.php (copied) (copied from fastcache-by-host-it/trunk/src/Core/PageCache.php)
-
tags/1.5.17/src/Core/Platform/Cache.php (copied) (copied from fastcache-by-host-it/trunk/src/Core/Platform/Cache.php)
-
tags/1.5.17/src/Core/Platform/Plugin.php (copied) (copied from fastcache-by-host-it/trunk/src/Core/Platform/Plugin.php)
-
tags/1.5.17/src/Core/Platform/Utility.php (copied) (copied from fastcache-by-host-it/trunk/src/Core/Platform/Utility.php)
-
tags/1.5.17/src/Dispatcher.php (modified) (3 diffs)
-
trunk/README.txt (modified) (2 diffs)
-
trunk/fastcache.php (modified) (2 diffs)
-
trunk/src/Dispatcher.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
fastcache-by-host-it/tags/1.5.17/README.txt
r3460794 r3465833 5 5 Tested up to: 6.9.1 6 6 Requires PHP: 8.0 7 Stable Tag: 1.5.1 67 Stable Tag: 1.5.17 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.17 135 Cron purge of cache files. Cron time every hour, ttl 1day 136 134 137 1.5.16 135 138 Fix to restore the original htaccess when the plugin is deactivated -
fastcache-by-host-it/tags/1.5.17/fastcache.php
r3460794 r3465833 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.1 619 * Version: 1.5.17 20 20 * Author: Host.it 21 21 * Author URI: https://fastcache.host.it/ … … 45 45 define ( '_WP_EXEC', '1' ); 46 46 define ( '_FASTCACHE_EXEC', 1 ); 47 define ( 'FASTCACHE_VERSION', '1.5.1 6' );47 define ( 'FASTCACHE_VERSION', '1.5.17' ); 48 48 define ( 'FASTCACHE_FILE_PATH', __FILE__ ); 49 49 -
fastcache-by-host-it/tags/1.5.17/src/Dispatcher.php
r3458155 r3465833 100 100 add_action ( 'plugins_loaded', [ 101 101 __CLASS__, 102 'loadPluginTextDomain' 103 ] ); 104 105 add_action ( 'plugins_loaded', [ 106 __CLASS__, 107 'migration' 108 ] ); 102 'pluginsLoaded' 103 ], ); 109 104 // register_uninstall_hook ( FASTCACHE_FILE_PATH, [ 110 105 // 'FastCache\\Dispatcher', … … 203 198 return $sOptimizedHtml; 204 199 } 200 public static function pluginsLoaded() { 201 self::loadPluginTextDomain(); 202 self::migration(); 203 self::cronActivation(); 204 } 205 205 public static function migration() { 206 206 $installed = get_option('fastcache_version'); … … 225 225 update_option('fastcache_version', FASTCACHE_VERSION); 226 226 227 } 228 public static function cronActivation() { 229 if (! wp_next_scheduled ( 'fastcache_cron_prune' )) { 230 wp_schedule_event ( time (), 'hourly', 'fastcache_cron_prune' ); 231 } 232 233 // i need to add a hook to the cronjob 234 add_action ( 'fastcache_cron_prune', [ __CLASS__, 'cronPrune' ] ); 235 236 } 237 238 public static function cronPrune() { 239 // in this method i need to cancel all the file in FASTCACHE_CACHE_DIR . "page/*" older than FASTCACHE_TTL_HTACCESS or 1day 240 $cache_dir = FASTCACHE_CACHE_DIR . "page/*"; 241 $files = glob($cache_dir); 242 $current_time = time(); 243 $ttl = 86400; 244 foreach ($files as $file) { 245 $diff = $current_time - filemtime($file); 246 if ($diff > $ttl || filesize($file) ==0) { 247 unlink($file); 248 } 249 } 227 250 } 228 251 public static function fastcache_upgrade_to_155() { -
fastcache-by-host-it/trunk/README.txt
r3460794 r3465833 5 5 Tested up to: 6.9.1 6 6 Requires PHP: 8.0 7 Stable Tag: 1.5.1 67 Stable Tag: 1.5.17 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.17 135 Cron purging of cache files. Cron timing: every hour, ttl: 1day 136 134 137 1.5.16 135 138 Fix to restore the original htaccess when the plugin is deactivated -
fastcache-by-host-it/trunk/fastcache.php
r3460794 r3465833 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.1 619 * Version: 1.5.17 20 20 * Author: Host.it 21 21 * Author URI: https://fastcache.host.it/ … … 45 45 define ( '_WP_EXEC', '1' ); 46 46 define ( '_FASTCACHE_EXEC', 1 ); 47 define ( 'FASTCACHE_VERSION', '1.5.1 6' );47 define ( 'FASTCACHE_VERSION', '1.5.17' ); 48 48 define ( 'FASTCACHE_FILE_PATH', __FILE__ ); 49 49 -
fastcache-by-host-it/trunk/src/Dispatcher.php
r3458155 r3465833 100 100 add_action ( 'plugins_loaded', [ 101 101 __CLASS__, 102 'loadPluginTextDomain' 103 ] ); 104 105 add_action ( 'plugins_loaded', [ 106 __CLASS__, 107 'migration' 108 ] ); 102 'pluginsLoaded' 103 ], ); 109 104 // register_uninstall_hook ( FASTCACHE_FILE_PATH, [ 110 105 // 'FastCache\\Dispatcher', … … 203 198 return $sOptimizedHtml; 204 199 } 200 public static function pluginsLoaded() { 201 self::loadPluginTextDomain(); 202 self::migration(); 203 self::cronActivation(); 204 } 205 205 public static function migration() { 206 206 $installed = get_option('fastcache_version'); … … 225 225 update_option('fastcache_version', FASTCACHE_VERSION); 226 226 227 } 228 public static function cronActivation() { 229 if (! wp_next_scheduled ( 'fastcache_cron_prune' )) { 230 wp_schedule_event ( time (), 'hourly', 'fastcache_cron_prune' ); 231 } 232 233 // i need to add a hook to the cronjob 234 add_action ( 'fastcache_cron_prune', [ __CLASS__, 'cronPrune' ] ); 235 236 } 237 238 public static function cronPrune() { 239 // in this method i need to cancel all the file in FASTCACHE_CACHE_DIR . "page/*" older than FASTCACHE_TTL_HTACCESS or 1day 240 $cache_dir = FASTCACHE_CACHE_DIR . "page/*"; 241 $files = glob($cache_dir); 242 $current_time = time(); 243 $ttl = 86400; 244 foreach ($files as $file) { 245 $diff = $current_time - filemtime($file); 246 if ($diff > $ttl || filesize($file) ==0) { 247 unlink($file); 248 } 249 } 227 250 } 228 251 public static function fastcache_upgrade_to_155() {
Note: See TracChangeset
for help on using the changeset viewer.