Skip to content

Commit

Permalink
Stats: no caching for purchases and usage endpoints (#40266)
Browse files Browse the repository at this point in the history
* no cache for purchases and usage endpoints

* changelog

* fix wrong param issue

Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/11927185587

Upstream-Ref: Automattic/jetpack@366e283
  • Loading branch information
kangzj authored and matticbot committed Nov 20, 2024
1 parent 37dab9b commit 426b046
Show file tree
Hide file tree
Showing 7 changed files with 104 additions and 91 deletions.
60 changes: 30 additions & 30 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion vendor/automattic/jetpack-mu-wpcom/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"automattic/jetpack-connection": "^6.1.0-alpha",
"automattic/jetpack-masterbar": "^0.10.1-alpha",
"automattic/jetpack-redirect": "^3.0.1-alpha",
"automattic/jetpack-stats-admin": "^0.23.0",
"automattic/jetpack-stats-admin": "^0.23.1-alpha",
"automattic/jetpack-status": "^5.0.1-alpha",
"automattic/scheduled-updates": "^0.14.0-alpha",
"automattic/jetpack-compat": "^4.0.0",
Expand Down
7 changes: 7 additions & 0 deletions vendor/automattic/jetpack-stats-admin/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## 0.23.1-alpha - unreleased

This is an alpha version! The changes listed here are not final.

### Fixed
- Stast: removed cache for purchases and usage endpoints

## 0.23.0 - 2024-11-18
### Removed
- General: Update minimum PHP version to 7.2. [#40147]
Expand Down
2 changes: 1 addition & 1 deletion vendor/automattic/jetpack-stats-admin/src/class-main.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class Main {
/**
* Stats version.
*/
const VERSION = '0.23.0';
const VERSION = '0.23.1-alpha';

/**
* Singleton Main instance.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -710,7 +710,8 @@ public function get_site_plan_usage( $req ) {
'v2',
array( 'timeout' => 5 ),
null,
'wpcom'
'wpcom',
false
);
}

Expand Down Expand Up @@ -1186,7 +1187,12 @@ public function get_site_purchases( $req ) {
$this->filter_and_build_query_string(
$req->get_query_params()
)
)
),
'v1.1',
array( 'timeout' => 10 ),
null,
'rest',
false
);
}

Expand Down
Loading

0 comments on commit 426b046

Please sign in to comment.