Changeset 2851752
- Timestamp:
- 01/20/2023 09:16:14 AM (3 years ago)
- Location:
- powered-cache
- Files:
-
- 10 edited
- 1 copied
-
tags/2.5.2 (copied) (copied from powered-cache/trunk)
-
tags/2.5.2/includes/classes/AdvancedCache.php (modified) (2 diffs)
-
tags/2.5.2/includes/utils.php (modified) (1 diff)
-
tags/2.5.2/languages/powered-cache.pot (modified) (2 diffs)
-
tags/2.5.2/powered-cache.php (modified) (2 diffs)
-
tags/2.5.2/readme.txt (modified) (2 diffs)
-
trunk/includes/classes/AdvancedCache.php (modified) (2 diffs)
-
trunk/includes/utils.php (modified) (1 diff)
-
trunk/languages/powered-cache.pot (modified) (2 diffs)
-
trunk/powered-cache.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
powered-cache/tags/2.5.2/includes/classes/AdvancedCache.php
r2851003 r2851752 121 121 'id' => 'advanced-cache-current-page-purge', 122 122 'title' => esc_html__( 'Purge Current Page', 'powered-cache' ), 123 'href' => wp_nonce_url( admin_url( sprintf( 'admin-post.php?action=powered_cache_purge_page_cache&type=current-page&p age=%d', get_the_ID() ) ), 'powered_cache_purge_page_cache' ),123 'href' => wp_nonce_url( admin_url( sprintf( 'admin-post.php?action=powered_cache_purge_page_cache&type=current-page&post=%d', get_the_ID() ) ), 'powered_cache_purge_page_cache' ), 124 124 'parent' => 'powered-cache', 125 125 ) … … 168 168 169 169 if ( current_user_can( 'manage_options' ) ) { 170 if ( isset( $_GET['type'] ) && 'current-page' === $_GET['type'] && ! empty( $_GET['page'] ) ) { 171 $page_url = get_permalink( absint( $_GET['page'] ) ); 172 delete_page_cache( $page_url ); 170 if ( isset( $_GET['type'] ) && 'current-page' === $_GET['type'] && ! empty( $_GET['post'] ) ) { 171 $this->purge_on_post_update( absint( $_GET['post'] ) ); 173 172 } elseif ( $this->settings['async_cache_cleaning'] ) { 174 173 $this->cache_purger->push_to_queue( [ 'call' => 'clean_site_cache_dir' ] ); -
powered-cache/tags/2.5.2/includes/utils.php
r2851003 r2851752 793 793 * Just clean that directory's files only. 794 794 */ 795 if ( ! is_dir( $dir . $file ) && ! in_array( $file, array( '.', '..' ), true ) ) {795 if ( ! is_dir( $dir . $file ) && file_exists( $dir . $file ) && ! in_array( $file, array( '.', '..' ), true ) ) { 796 796 unlink( $dir . $file ); 797 797 } 798 799 /** 800 * Given page can include endpoints such as /feed/.. 801 * Delete subdirectories. 802 * 803 * @since 2.5 804 */ 805 if ( is_dir( $dir . $file ) ) { 806 remove_dir( $dir . $file ); 807 } 808 809 if ( file_exists( $dir ) && is_dir_empty( $dir ) ) { 810 remove_dir( $dir ); 811 } 798 } 799 800 if ( file_exists( $dir ) && is_dir_empty( $dir ) ) { 801 remove_dir( $dir ); 812 802 } 813 803 -
powered-cache/tags/2.5.2/languages/powered-cache.pot
r2851060 r2851752 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: Powered Cache 2.5. 1\n"5 "Project-Id-Version: Powered Cache 2.5.2\n" 6 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/powered-cache\n" 7 7 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" … … 10 10 "Content-Type: text/plain; charset=UTF-8\n" 11 11 "Content-Transfer-Encoding: 8bit\n" 12 "POT-Creation-Date: 2023-01- 19T12:45:05+00:00\n"12 "POT-Creation-Date: 2023-01-20T09:12:05+00:00\n" 13 13 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 14 14 "X-Generator: WP-CLI 2.6.0\n" -
powered-cache/tags/2.5.2/powered-cache.php
r2851060 r2851752 4 4 * Plugin URI: https://poweredcache.com 5 5 * Description: The most powerful caching and performance suite for WordPress. Easily Improve PageSpeed & Web Vitals Score. 6 * Version: 2.5. 16 * Version: 2.5.2 7 7 * Requires at least: 5.7 8 8 * Requires PHP: 5.6 … … 26 26 27 27 // Useful global constants. 28 define( 'POWERED_CACHE_VERSION', '2.5. 1' );28 define( 'POWERED_CACHE_VERSION', '2.5.2' ); 29 29 define( 'POWERED_CACHE_DB_VERSION', '2.0' ); 30 30 define( 'POWERED_CACHE_PLUGIN_FILE', __FILE__ ); -
powered-cache/tags/2.5.2/readme.txt
r2851060 r2851752 4 4 Requires at least: 5.7 5 5 Tested up to: 6.1 6 Stable tag: 2.5. 16 Stable tag: 2.5.2 7 7 License: GPLv2 (or later) 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 169 169 170 170 == Changelog == 171 172 = 2.5.2 (January 20, 2023) = 173 - Fix: revert subdirectory deletion with `delete_page_cache()` 174 - Fix: Delete related page cache on purging the current page cache. 171 175 172 176 = 2.5.1 (January 19, 2023) = -
powered-cache/trunk/includes/classes/AdvancedCache.php
r2851003 r2851752 121 121 'id' => 'advanced-cache-current-page-purge', 122 122 'title' => esc_html__( 'Purge Current Page', 'powered-cache' ), 123 'href' => wp_nonce_url( admin_url( sprintf( 'admin-post.php?action=powered_cache_purge_page_cache&type=current-page&p age=%d', get_the_ID() ) ), 'powered_cache_purge_page_cache' ),123 'href' => wp_nonce_url( admin_url( sprintf( 'admin-post.php?action=powered_cache_purge_page_cache&type=current-page&post=%d', get_the_ID() ) ), 'powered_cache_purge_page_cache' ), 124 124 'parent' => 'powered-cache', 125 125 ) … … 168 168 169 169 if ( current_user_can( 'manage_options' ) ) { 170 if ( isset( $_GET['type'] ) && 'current-page' === $_GET['type'] && ! empty( $_GET['page'] ) ) { 171 $page_url = get_permalink( absint( $_GET['page'] ) ); 172 delete_page_cache( $page_url ); 170 if ( isset( $_GET['type'] ) && 'current-page' === $_GET['type'] && ! empty( $_GET['post'] ) ) { 171 $this->purge_on_post_update( absint( $_GET['post'] ) ); 173 172 } elseif ( $this->settings['async_cache_cleaning'] ) { 174 173 $this->cache_purger->push_to_queue( [ 'call' => 'clean_site_cache_dir' ] ); -
powered-cache/trunk/includes/utils.php
r2851003 r2851752 793 793 * Just clean that directory's files only. 794 794 */ 795 if ( ! is_dir( $dir . $file ) && ! in_array( $file, array( '.', '..' ), true ) ) {795 if ( ! is_dir( $dir . $file ) && file_exists( $dir . $file ) && ! in_array( $file, array( '.', '..' ), true ) ) { 796 796 unlink( $dir . $file ); 797 797 } 798 799 /** 800 * Given page can include endpoints such as /feed/.. 801 * Delete subdirectories. 802 * 803 * @since 2.5 804 */ 805 if ( is_dir( $dir . $file ) ) { 806 remove_dir( $dir . $file ); 807 } 808 809 if ( file_exists( $dir ) && is_dir_empty( $dir ) ) { 810 remove_dir( $dir ); 811 } 798 } 799 800 if ( file_exists( $dir ) && is_dir_empty( $dir ) ) { 801 remove_dir( $dir ); 812 802 } 813 803 -
powered-cache/trunk/languages/powered-cache.pot
r2851060 r2851752 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: Powered Cache 2.5. 1\n"5 "Project-Id-Version: Powered Cache 2.5.2\n" 6 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/powered-cache\n" 7 7 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" … … 10 10 "Content-Type: text/plain; charset=UTF-8\n" 11 11 "Content-Transfer-Encoding: 8bit\n" 12 "POT-Creation-Date: 2023-01- 19T12:45:05+00:00\n"12 "POT-Creation-Date: 2023-01-20T09:12:05+00:00\n" 13 13 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 14 14 "X-Generator: WP-CLI 2.6.0\n" -
powered-cache/trunk/powered-cache.php
r2851060 r2851752 4 4 * Plugin URI: https://poweredcache.com 5 5 * Description: The most powerful caching and performance suite for WordPress. Easily Improve PageSpeed & Web Vitals Score. 6 * Version: 2.5. 16 * Version: 2.5.2 7 7 * Requires at least: 5.7 8 8 * Requires PHP: 5.6 … … 26 26 27 27 // Useful global constants. 28 define( 'POWERED_CACHE_VERSION', '2.5. 1' );28 define( 'POWERED_CACHE_VERSION', '2.5.2' ); 29 29 define( 'POWERED_CACHE_DB_VERSION', '2.0' ); 30 30 define( 'POWERED_CACHE_PLUGIN_FILE', __FILE__ ); -
powered-cache/trunk/readme.txt
r2851060 r2851752 4 4 Requires at least: 5.7 5 5 Tested up to: 6.1 6 Stable tag: 2.5. 16 Stable tag: 2.5.2 7 7 License: GPLv2 (or later) 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 169 169 170 170 == Changelog == 171 172 = 2.5.2 (January 20, 2023) = 173 - Fix: revert subdirectory deletion with `delete_page_cache()` 174 - Fix: Delete related page cache on purging the current page cache. 171 175 172 176 = 2.5.1 (January 19, 2023) =
Note: See TracChangeset
for help on using the changeset viewer.