This commit is contained in:
Adrien Foulon 2019-03-13 11:51:24 +01:00 committed by GitHub
parent 13b5a07383
commit 95cbe5c969
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -368,6 +368,9 @@ class WC_Admin_Report {
*/
protected static $cached_results = array();
/**
* Hook to update the updated transients at the end of the request
*/
public function _update_transients() {
foreach ( $this->transients_to_update as $transient_name ) {
set_transient( $transient_name, self::$cached_results[ $transient_name ], DAY_IN_SECONDS );