WordPress.org

Making WordPress.org


Ignore:
Timestamp:
02/02/2018 10:26:17 PM (18 months ago)
Author:
obenland
Message:

Translate, Plugin Directory: Add new cache kye to purge.

Props ocean90.
See [6529].

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-plugin-directory/inc/cache-purge/class-cache-purger.php

    r5442 r6532  
    8585
    8686                $this->delete_plugin_i18n_cache_keys_for_locale( $original->project_id, $translation_set->locale );
     87                $prefix = $this->get_plugin_i18n_cache_prefix( (int) $original->project_id );
     88                if ( $prefix ) {
     89                    wp_cache_delete( "{$prefix}:translations:{$set_id}", $this->i18n_cache_group );
     90                }
     91
    8792                $purged[] = "{$original->project_id}-{$set_id}";
    8893            }
Note: See TracChangeset for help on using the changeset viewer.