Changeset 3070018
- Timestamp:
- 04/13/2024 12:09:31 PM (2 years ago)
- Location:
- camoo-cdn/trunk
- Files:
-
- 3 added
- 4 edited
-
camoo-cdn.php (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
-
src/Bootstrap.php (modified) (2 diffs)
-
src/Cache (added)
-
src/Cache/Settings.php (added)
-
src/Services/QueryCaching.php (added)
-
uninstall.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
camoo-cdn/trunk/camoo-cdn.php
r3059026 r3070018 8 8 * Plugin URI: https://github.com/camoo/wp-camoo-cdn 9 9 * Description: Integrates your WordPress site with Camoo.Hosting CDN for improved loading times and performance. 10 * Version: 2.0. 110 * Version: 2.0.2 11 11 * Author: CAMOO SARL 12 12 * Author URI: https://www.camoo.hosting/ … … 16 16 * Domain Path: /languages 17 17 * Requires at least: 6.4.3 18 * Tested up to: 6.5 18 * Tested up to: 6.5.2 19 19 * Requires PHP: 8.0 20 20 * -
camoo-cdn/trunk/readme.txt
r3059026 r3070018 3 3 Tags: Camoo.Hosting, CAMOO CDN Integration, Managed Hosting with CDN, Hébergement Web avec CDN, WordPress Caching, WP Super Cache 4 4 Requires at least: 6.4.3 5 Tested up to: 6.5 5 Requires Plugins: wp-super-cache 6 Tested up to: 6.5.2 6 7 Requires PHP: 8.0 7 8 Stable tag: 2.0.1 … … 43 44 44 45 == Changelog == 46 = 2.0.2: 13.04, 2024 = 47 * Tweak: Query cache added 48 45 49 = 2.0.1: 26.03, 2024 = 46 50 * Tweak: uninstall script added -
camoo-cdn/trunk/src/Bootstrap.php
r3059295 r3070018 5 5 namespace WP_CAMOO\CDN; 6 6 7 use WP_CAMOO\CDN\Cache\Settings; 7 8 use WP_CAMOO\CDN\Services\Integration; 9 use WP_CAMOO\CDN\Services\QueryCaching; 8 10 9 11 final class Bootstrap … … 51 53 add_filter('all_plugins', [$this, 'modifyPluginDescription']); 52 54 add_action('admin_notices', [$this, 'displaySyncMessages']); 55 56 // Hook into the admin menu to add a settings page 57 Settings::init(); 58 // Hook into the posts_results filter to cache queries 59 add_filter('posts_results', [QueryCaching::class, 'read'], 10, 2); 60 61 // Clear the cache when posts are saved or deleted 62 add_action('save_post', [QueryCaching::class, 'clear']); 63 add_action('deleted_post', [QueryCaching::class, 'clear']); 53 64 } 54 65 } -
camoo-cdn/trunk/uninstall.php
r3059295 r3070018 20 20 delete_option('ossdl_off_blog_url'); 21 21 delete_option('wp_camoo_cdn_db_version'); 22 delete_option('camoo_cdn_cache_settings'); 22 23 24 global $wpdb; 25 $wpdb->query(" 26 DELETE FROM {$wpdb->options} 27 WHERE option_name LIKE '\_transient\_camoo\_cdn\_%' OR option_name LIKE '\_transient\_timeout\_camoo\_cdn\_%' 28 "); 23 29 $configFile = WP_CONTENT_DIR . '/wp-cache-config.php'; 24 30 if (file_exists($configFile)) {
Note: See TracChangeset
for help on using the changeset viewer.