Plugin Directory

Changeset 3094179


Ignore:
Timestamp:
05/28/2024 09:34:14 PM (22 months ago)
Author:
getpantheon
Message:

update changelog

Location:
pantheon-advanced-page-cache
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • pantheon-advanced-page-cache/tags/2.0.0/readme.txt

    r3094130 r3094179  
    161161When the cache max age is filtered in this way, the admin option is disabled and a notice is displayed.
    162162
     163= Setting the Cache Max Age with a filter =
     164
     165The cache max age setting is controlled by the [Pantheon Page Cache](https://docs.pantheon.io/guides/wordpress-configurations/wordpress-cache-plugin) admin page. As of 2.0.0, there are three cache age options by default — 1 week, 1 month, 1 year. Pantheon Advanced Page Cache automatically purges the cache of updated and related posts and pages, but you might want to override the cache max age value and set it programmatically. In this case, you can use the `pantheon_cache_default_max_age` filter added in [Pantheon MU plugin 1.4.0+](https://docs.pantheon.io/guides/wordpress-configurations/wordpress-cache-plugin#override-the-default-max-age). For example:
     166
     167    add_filter( 'pantheon_cache_default_max_age', function() {
     168        return 10 * DAY_IN_SECONDS;
     169    } );
     170
     171When the cache max age is filtered in this way, the admin option is disabled and a notice is displayed.
     172
    163173== WP-CLI Commands ==
    164174
     
    334344== Other Filters ==
    335345
    336 = `pantheon_apc_disable_admin_notices` =
     346= pantheon_apc_disable_admin_notices =
    337347Since 2.0.0, Pantheon Advanced Page Cache displays a number of admin notices about your current cache max age value. You can disable these notices with the `pantheon_apc_disable_admin_notices` filter.
    338348
     
    350360The above example would disable _only_ the admin notice recommending a higher cache max age.
    351361
     362== Other Filters ==
     363
     364= pantheon_apc_disable_admin_notices =
     365Since 2.0.0, Pantheon Advanced Page Cache displays a number of admin notices about your current cache max age value. You can disable these notices with the `pantheon_apc_disable_admin_notices` filter.
     366
     367    add_filter( 'pantheon_apc_disable_admin_notices', '__return_true' );
     368
     369Alternately, the function callback is passed into the `pantheon_apc_disable_admin_notices` filter, allowing you to specify precisely _which_ notice to disable, for example:
     370
     371    add_filter( 'pantheon_apc_disable_admin_notices', function( $disable_notices, $callback ) {
     372        if ( $callback === '\\Pantheon_Advanced_Page_Cache\\Admin_Interface\\admin_notice_maybe_recommend_higher_max_age' ) {
     373            return true;
     374        }
     375        return $disable_notices;
     376    }, 10, 2 );
     377
     378The above example would disable _only_ the admin notice recommending a higher cache max age.
     379
    352380== Plugin Integrations ==
    353381
     
    363391= 2.0.0 (28 May 2024) =
    364392* Adds new admin alerts and Site Health tests about default cache max age settings and recommendations [[#268](https://github.com/pantheon-systems/pantheon-advanced-page-cache/pull/268), [#271](https://github.com/pantheon-systems/pantheon-advanced-page-cache/pull/271)]. The default Pantheon GCDN cache max age value has been updated to 1 week in the [Pantheon MU plugin](https://github.com/pantheon-systems/pantheon-mu-plugin). For more information, see the [release note](https://docs.pantheon.io/release-notes/2024/04/pantheon-mu-plugin-1-4-0-update).
    365 * Updated UI in Pantheon Page Cache admin page when used in a Pantheon environment (with the Pantheon MU plugin). [[#272](https://github.com/pantheon-systems/pantheon-advanced-page-cache/pull/272)]
     393* Updated UI in Pantheon Page Cache admin page when used in a Pantheon environment (with the Pantheon MU plugin). [[#272](https://github.com/pantheon-systems/pantheon-advanced-page-cache/pull/272)] This UI change takes effect when [Pantheon MU plugin version 1.4.3](https://docs.pantheon.io/release-notes/2024/05/pantheon-mu-plugin-1-4-3-update) is available on your site.
    366394* Automatically updates the cache max age to the recommended value (1 week) if it was saved at the old default value (600 seconds). [[#269](https://github.com/pantheon-systems/pantheon-advanced-page-cache/pull/269)]
    367395* Adds a hook into the `nonce_life` filter when nonces are created on the front-end to set the `pantheon_cache_default_max_age` to less than the nonce lifetime to avoid nonces expiring before the cache does. [[#282](https://github.com/pantheon-systems/pantheon-advanced-page-cache/pull/282)] props [@ryanshoover](https://profiles.wordpress.org/ryanshoover/)
     
    450478
    451479= 1.3.0 =
     480= 1.3.0 =
    452481Note that the Pantheon Advanced Page Cache 1.3.0 release now prefixes keys on a WordPress Multisite (WPMS) with the blog ID. For users who already have this plugin installed on a WPMS, they will need to click the Clear Cache button on the settings page to generate the prefixed keys.
  • pantheon-advanced-page-cache/trunk/readme.txt

    r3094176 r3094179  
    390390== Other Filters ==
    391391
    392 = `pantheon_apc_disable_admin_notices` =
     392= pantheon_apc_disable_admin_notices =
    393393Since 2.0.0, Pantheon Advanced Page Cache displays a number of admin notices about your current cache max age value. You can disable these notices with the `pantheon_apc_disable_admin_notices` filter.
    394394
Note: See TracChangeset for help on using the changeset viewer.