Skip to content

Commit

Permalink
chore: increase kept versions
Browse files Browse the repository at this point in the history
Increased kept plugin versions increased to 50, kept theme versions to 25. Ref: #32
  • Loading branch information
ivuorinen authored Jan 20, 2025
1 parent 99459d5 commit c2da6ba
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions bin/cache
Original file line number Diff line number Diff line change
Expand Up @@ -304,8 +304,8 @@ foreach ( $plugins as $plugin ) {
continue;
}

// Only keep 25 newest plugin versions.
$plugin->versions = collect( $plugin->versions )->sortKeys()->reverse()->take( 25 );
// Keep 50 newest plugin versions.
$plugin->versions = collect( $plugin->versions )->sortKeys()->reverse()->take( 50 );

// Get all translations to all known plugin versions
foreach ( $plugin->versions as $version => $url ) {
Expand Down Expand Up @@ -378,8 +378,8 @@ foreach ( $themes as $theme ) {
continue;
}

// Only keep 10 newest theme versions.
$theme->versions = collect( $theme->versions )->sortKeys()->reverse()->take( 10 );
// Keep 25 newest theme versions.
$theme->versions = collect( $theme->versions )->sortKeys()->reverse()->take( 25 );

foreach ( $theme->versions as $theme_version => $theme_version_url ) {
$theme_cache_file_name = "$cache_dir/theme-$slug-$theme_version.json";
Expand Down

0 comments on commit c2da6ba

Please sign in to comment.