Plugin Directory

Changeset 2851752


Ignore:
Timestamp:
01/20/2023 09:16:14 AM (3 years ago)
Author:
poweredcache
Message:

Update to version 2.5.2 from GitHub

Location:
powered-cache
Files:
10 edited
1 copied

Legend:

Unmodified
Added
Removed
  • powered-cache/tags/2.5.2/includes/classes/AdvancedCache.php

    r2851003 r2851752  
    121121                        'id'     => 'advanced-cache-current-page-purge',
    122122                        '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&page=%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' ),
    124124                        'parent' => 'powered-cache',
    125125                    )
     
    168168
    169169        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'] ) );
    173172            } elseif ( $this->settings['async_cache_cleaning'] ) {
    174173                $this->cache_purger->push_to_queue( [ 'call' => 'clean_site_cache_dir' ] );
  • powered-cache/tags/2.5.2/includes/utils.php

    r2851003 r2851752  
    793793             * Just clean that directory's files only.
    794794             */
    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 ) ) {
    796796                unlink( $dir . $file );
    797797            }
    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 );
    812802        }
    813803
  • powered-cache/tags/2.5.2/languages/powered-cache.pot

    r2851060 r2851752  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: Powered Cache 2.5.1\n"
     5"Project-Id-Version: Powered Cache 2.5.2\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/powered-cache\n"
    77"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
     
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"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"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1414"X-Generator: WP-CLI 2.6.0\n"
  • powered-cache/tags/2.5.2/powered-cache.php

    r2851060 r2851752  
    44 * Plugin URI:        https://poweredcache.com
    55 * Description:       The most powerful caching and performance suite for WordPress. Easily Improve PageSpeed & Web Vitals Score.
    6  * Version:           2.5.1
     6 * Version:           2.5.2
    77 * Requires at least: 5.7
    88 * Requires PHP:      5.6
     
    2626
    2727// Useful global constants.
    28 define( 'POWERED_CACHE_VERSION', '2.5.1' );
     28define( 'POWERED_CACHE_VERSION', '2.5.2' );
    2929define( 'POWERED_CACHE_DB_VERSION', '2.0' );
    3030define( 'POWERED_CACHE_PLUGIN_FILE', __FILE__ );
  • powered-cache/tags/2.5.2/readme.txt

    r2851060 r2851752  
    44Requires at least:  5.7
    55Tested up to:  6.1
    6 Stable tag:  2.5.1
     6Stable tag:  2.5.2
    77License: GPLv2 (or later)
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    169169
    170170== 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.
    171175
    172176= 2.5.1 (January 19, 2023) =
  • powered-cache/trunk/includes/classes/AdvancedCache.php

    r2851003 r2851752  
    121121                        'id'     => 'advanced-cache-current-page-purge',
    122122                        '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&page=%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' ),
    124124                        'parent' => 'powered-cache',
    125125                    )
     
    168168
    169169        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'] ) );
    173172            } elseif ( $this->settings['async_cache_cleaning'] ) {
    174173                $this->cache_purger->push_to_queue( [ 'call' => 'clean_site_cache_dir' ] );
  • powered-cache/trunk/includes/utils.php

    r2851003 r2851752  
    793793             * Just clean that directory's files only.
    794794             */
    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 ) ) {
    796796                unlink( $dir . $file );
    797797            }
    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 );
    812802        }
    813803
  • powered-cache/trunk/languages/powered-cache.pot

    r2851060 r2851752  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: Powered Cache 2.5.1\n"
     5"Project-Id-Version: Powered Cache 2.5.2\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/powered-cache\n"
    77"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
     
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"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"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1414"X-Generator: WP-CLI 2.6.0\n"
  • powered-cache/trunk/powered-cache.php

    r2851060 r2851752  
    44 * Plugin URI:        https://poweredcache.com
    55 * Description:       The most powerful caching and performance suite for WordPress. Easily Improve PageSpeed & Web Vitals Score.
    6  * Version:           2.5.1
     6 * Version:           2.5.2
    77 * Requires at least: 5.7
    88 * Requires PHP:      5.6
     
    2626
    2727// Useful global constants.
    28 define( 'POWERED_CACHE_VERSION', '2.5.1' );
     28define( 'POWERED_CACHE_VERSION', '2.5.2' );
    2929define( 'POWERED_CACHE_DB_VERSION', '2.0' );
    3030define( 'POWERED_CACHE_PLUGIN_FILE', __FILE__ );
  • powered-cache/trunk/readme.txt

    r2851060 r2851752  
    44Requires at least:  5.7
    55Tested up to:  6.1
    6 Stable tag:  2.5.1
     6Stable tag:  2.5.2
    77License: GPLv2 (or later)
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    169169
    170170== 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.
    171175
    172176= 2.5.1 (January 19, 2023) =
Note: See TracChangeset for help on using the changeset viewer.