Changeset 3246966
- Timestamp:
- 02/26/2025 09:49:34 AM (13 months ago)
- Location:
- flush-opcache
- Files:
-
- 14 edited
- 1 copied
-
tags/4.2.1 (copied) (copied from flush-opcache/trunk)
-
tags/4.2.1/admin/class-flush-opcache-admin.php (modified) (3 diffs)
-
tags/4.2.1/admin/class-flush-opcache-cached-files-list.php (modified) (4 diffs)
-
tags/4.2.1/admin/flush-opcache-statistics.php (modified) (3 diffs)
-
tags/4.2.1/flush-opcache.php (modified) (1 diff)
-
tags/4.2.1/includes/class-flush-opcache-statistics.php (modified) (1 diff)
-
tags/4.2.1/includes/class-flush-opcache.php (modified) (3 diffs)
-
tags/4.2.1/readme.txt (modified) (3 diffs)
-
trunk/admin/class-flush-opcache-admin.php (modified) (3 diffs)
-
trunk/admin/class-flush-opcache-cached-files-list.php (modified) (4 diffs)
-
trunk/admin/flush-opcache-statistics.php (modified) (3 diffs)
-
trunk/flush-opcache.php (modified) (1 diff)
-
trunk/includes/class-flush-opcache-statistics.php (modified) (1 diff)
-
trunk/includes/class-flush-opcache.php (modified) (3 diffs)
-
trunk/readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
flush-opcache/tags/4.2.1/admin/class-flush-opcache-admin.php
r2753547 r3246966 60 60 public function flush_opcache_admin_menu() { 61 61 if ( is_multisite() && is_super_admin() && is_main_site() ) { 62 add_m enu_page(62 add_management_page( 63 63 __( 'WP OPcache Settings', 'flush-opcache' ), 64 64 __( 'WP OPcache', 'flush-opcache' ), … … 68 68 ); 69 69 } elseif ( ! is_multisite() && is_admin() ) { 70 add_m enu_page(70 add_management_page( 71 71 __( 'WP OPcache Settings', 'flush-opcache' ), 72 72 __( 'WP OPcache', 'flush-opcache' ), … … 377 377 } 378 378 } 379 380 379 } -
flush-opcache/tags/4.2.1/admin/class-flush-opcache-cached-files-list.php
r2753547 r3246966 130 130 $opcache_scripts_filtered = array_filter( 131 131 $opcache_scripts, 132 function ( $array ) { 132 function ( $array ) { // phpcs:ignore 133 133 return sanitize_key( $_GET['s'] ) !== '' && mb_strpos( $array['full_path'], sanitize_key( $_GET['s'] ) ) !== false; // phpcs:ignore 134 134 } … … 142 142 usort( 143 143 $opcache_scripts_filtered, 144 function ( $a, $b ) {144 function ( $a, $b ) { 145 145 $orderby = sanitize_key( $_GET['orderby'] ); // phpcs:ignore 146 146 if ( isset( $_GET['order'] ) && 'asc' === $_GET['order'] ) { // phpcs:ignore … … 161 161 'total_items' => count( $opcache_scripts_filtered ), 162 162 ); 163 164 163 } 165 164 … … 305 304 <?php 306 305 } 307 308 306 } -
flush-opcache/tags/4.2.1/admin/flush-opcache-statistics.php
r2528653 r3246966 14 14 } 15 15 16 require_once plugin_dir_path( dirname( __FILE__ )) . '/includes/class-flush-opcache-statistics.php';16 require_once plugin_dir_path( __DIR__ ) . '/includes/class-flush-opcache-statistics.php'; 17 17 $opcache_data = new Flush_Opcache_Statistics(); 18 18 $opcache_stroke_dasharray = pi() * 200; … … 225 225 $count = 0; 226 226 foreach ( $opcache_data->get_stats( 'functions' ) as $function ) { 227 $count++;227 ++$count; 228 228 ?> 229 229 <tr<?php if ( 0 === $count % 2 ) { ?> class="alternate" <?php } // phpcs:ignore ?>> … … 253 253 $count = 0; 254 254 foreach ( $opcache_data_directives as $directive ) { 255 $count++;255 ++$count; 256 256 if ( is_array( $directive['v'] ) ) { 257 257 $directive_value = '<ul>'; -
flush-opcache/tags/4.2.1/flush-opcache.php
r2853148 r3246966 22 22 } 23 23 24 define( 'FLUSH_OPCACHE_VERSION', '4.2. 0' );24 define( 'FLUSH_OPCACHE_VERSION', '4.2.1' ); 25 25 define( 'FLUSH_OPCACHE_NAME', 'flush-opcache' ); 26 26 -
flush-opcache/tags/4.2.1/includes/class-flush-opcache-statistics.php
r2528653 r3246966 197 197 'functions' => get_extension_funcs( 'Zend OPcache' ), 198 198 ); 199 200 199 } 201 200 } -
flush-opcache/tags/4.2.1/includes/class-flush-opcache.php
r2853148 r3246966 46 46 */ 47 47 private function load_dependencies() { 48 require_once plugin_dir_path( dirname( __FILE__ )) . 'admin/class-flush-opcache-admin.php';49 require_once plugin_dir_path( dirname( __FILE__ )) . 'admin/class-flush-opcache-cached-files-list.php';50 require_once plugin_dir_path( dirname( __FILE__ )) . 'cli/class-flush-opcache-cli.php';48 require_once plugin_dir_path( __DIR__ ) . 'admin/class-flush-opcache-admin.php'; 49 require_once plugin_dir_path( __DIR__ ) . 'admin/class-flush-opcache-cached-files-list.php'; 50 require_once plugin_dir_path( __DIR__ ) . 'cli/class-flush-opcache-cli.php'; 51 51 } 52 52 … … 81 81 add_action( 82 82 'cli_init', 83 function () use ( $cli ) {83 function () use ( $cli ) { 84 84 WP_CLI::add_command( 'flush-opcache', $cli ); 85 85 } … … 100 100 return $this->version; 101 101 } 102 103 102 } -
flush-opcache/tags/4.2.1/readme.txt
r2853148 r3246966 2 2 Contributors: mnttech, ChristianGiupponi 3 3 Tags: opcache, cache, flush, php, multisite 4 Requires at least: 5.55 Requires PHP: 7.46 Tested up to: 6. 07 Stable tag: 4.2. 04 Requires at least: 6.0 5 Requires PHP: 8.1 6 Tested up to: 6.7.2 7 Stable tag: 4.2.1 8 8 License: GPLv2 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 15 15 **Flush OPcache** 16 16 17 * add a button in admin bar to flush OPcache 17 * creates a button in admin bar to flush OPcache 18 * menu is under Tools 18 19 * flush only files in WordPress absolute path 19 20 * individual or bulk file invalidation … … 54 55 == Changelog == 55 56 57 = 4.2.1 = 58 * Maintenance release 59 * Menu moved under Tools 60 56 61 = 4.2.0 = 57 62 * Add CLI support -
flush-opcache/trunk/admin/class-flush-opcache-admin.php
r2753547 r3246966 60 60 public function flush_opcache_admin_menu() { 61 61 if ( is_multisite() && is_super_admin() && is_main_site() ) { 62 add_m enu_page(62 add_management_page( 63 63 __( 'WP OPcache Settings', 'flush-opcache' ), 64 64 __( 'WP OPcache', 'flush-opcache' ), … … 68 68 ); 69 69 } elseif ( ! is_multisite() && is_admin() ) { 70 add_m enu_page(70 add_management_page( 71 71 __( 'WP OPcache Settings', 'flush-opcache' ), 72 72 __( 'WP OPcache', 'flush-opcache' ), … … 377 377 } 378 378 } 379 380 379 } -
flush-opcache/trunk/admin/class-flush-opcache-cached-files-list.php
r2753547 r3246966 130 130 $opcache_scripts_filtered = array_filter( 131 131 $opcache_scripts, 132 function ( $array ) { 132 function ( $array ) { // phpcs:ignore 133 133 return sanitize_key( $_GET['s'] ) !== '' && mb_strpos( $array['full_path'], sanitize_key( $_GET['s'] ) ) !== false; // phpcs:ignore 134 134 } … … 142 142 usort( 143 143 $opcache_scripts_filtered, 144 function ( $a, $b ) {144 function ( $a, $b ) { 145 145 $orderby = sanitize_key( $_GET['orderby'] ); // phpcs:ignore 146 146 if ( isset( $_GET['order'] ) && 'asc' === $_GET['order'] ) { // phpcs:ignore … … 161 161 'total_items' => count( $opcache_scripts_filtered ), 162 162 ); 163 164 163 } 165 164 … … 305 304 <?php 306 305 } 307 308 306 } -
flush-opcache/trunk/admin/flush-opcache-statistics.php
r2528653 r3246966 14 14 } 15 15 16 require_once plugin_dir_path( dirname( __FILE__ )) . '/includes/class-flush-opcache-statistics.php';16 require_once plugin_dir_path( __DIR__ ) . '/includes/class-flush-opcache-statistics.php'; 17 17 $opcache_data = new Flush_Opcache_Statistics(); 18 18 $opcache_stroke_dasharray = pi() * 200; … … 225 225 $count = 0; 226 226 foreach ( $opcache_data->get_stats( 'functions' ) as $function ) { 227 $count++;227 ++$count; 228 228 ?> 229 229 <tr<?php if ( 0 === $count % 2 ) { ?> class="alternate" <?php } // phpcs:ignore ?>> … … 253 253 $count = 0; 254 254 foreach ( $opcache_data_directives as $directive ) { 255 $count++;255 ++$count; 256 256 if ( is_array( $directive['v'] ) ) { 257 257 $directive_value = '<ul>'; -
flush-opcache/trunk/flush-opcache.php
r2853148 r3246966 22 22 } 23 23 24 define( 'FLUSH_OPCACHE_VERSION', '4.2. 0' );24 define( 'FLUSH_OPCACHE_VERSION', '4.2.1' ); 25 25 define( 'FLUSH_OPCACHE_NAME', 'flush-opcache' ); 26 26 -
flush-opcache/trunk/includes/class-flush-opcache-statistics.php
r2528653 r3246966 197 197 'functions' => get_extension_funcs( 'Zend OPcache' ), 198 198 ); 199 200 199 } 201 200 } -
flush-opcache/trunk/includes/class-flush-opcache.php
r2853148 r3246966 46 46 */ 47 47 private function load_dependencies() { 48 require_once plugin_dir_path( dirname( __FILE__ )) . 'admin/class-flush-opcache-admin.php';49 require_once plugin_dir_path( dirname( __FILE__ )) . 'admin/class-flush-opcache-cached-files-list.php';50 require_once plugin_dir_path( dirname( __FILE__ )) . 'cli/class-flush-opcache-cli.php';48 require_once plugin_dir_path( __DIR__ ) . 'admin/class-flush-opcache-admin.php'; 49 require_once plugin_dir_path( __DIR__ ) . 'admin/class-flush-opcache-cached-files-list.php'; 50 require_once plugin_dir_path( __DIR__ ) . 'cli/class-flush-opcache-cli.php'; 51 51 } 52 52 … … 81 81 add_action( 82 82 'cli_init', 83 function () use ( $cli ) {83 function () use ( $cli ) { 84 84 WP_CLI::add_command( 'flush-opcache', $cli ); 85 85 } … … 100 100 return $this->version; 101 101 } 102 103 102 } -
flush-opcache/trunk/readme.txt
r2853148 r3246966 2 2 Contributors: mnttech, ChristianGiupponi 3 3 Tags: opcache, cache, flush, php, multisite 4 Requires at least: 5.55 Requires PHP: 7.46 Tested up to: 6. 07 Stable tag: 4.2. 04 Requires at least: 6.0 5 Requires PHP: 8.1 6 Tested up to: 6.7.2 7 Stable tag: 4.2.1 8 8 License: GPLv2 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 15 15 **Flush OPcache** 16 16 17 * add a button in admin bar to flush OPcache 17 * creates a button in admin bar to flush OPcache 18 * menu is under Tools 18 19 * flush only files in WordPress absolute path 19 20 * individual or bulk file invalidation … … 54 55 == Changelog == 55 56 57 = 4.2.1 = 58 * Maintenance release 59 * Menu moved under Tools 60 56 61 = 4.2.0 = 57 62 * Add CLI support
Note: See TracChangeset
for help on using the changeset viewer.