Making WordPress.org


Ignore:
Timestamp:
08/17/2023 05:16:41 AM (3 years ago)
Author:
dd32
Message:

Plugin Directory: API: Increase the cache duration for plugin details, but add API cache invalidation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/jobs/class-meta-sync.php

    r10230 r12846  
    33
    44use WordPressdotorg\Plugin_Directory\Plugin_Directory;
     5use WordPressdotorg\Plugin_Directory\Standalone\Plugins_Info_API;
    56
    67/**
    … …  
    182183                        // Update the API endpoints with the new data
    183184                        API_Update_Updater::update_single_plugin( $row->post_name );
     185                        Plugins_Info_API::flush_plugin_information_cache( $row->post_name );
    184186
    185187                        if ( $i % 100 === 0 ) {
Note: See TracChangeset for help on using the changeset viewer.