Skip to content

Commit 90946ae

Browse files
vraja-proclaude
andcommitted
fix: also clear the quick site-information transient on reset
The reset_site_information feature only deleted the 24-hour slow transient, leaving the 60-second quick transient intact. A page load on the licence/dashboard/plugins page after a reset would read the stale quick transient and re-populate the slow one with stale data, making the reset ineffective. Now both transients are cleared, matching what WPSEO_Addon_Manager::remove_site_information_transients() does in production. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 06a3c67 commit 90946ae

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/wordpress-plugins/yoast-seo.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,7 @@ private function reset_notifications() {
212212
* @return bool True if successful, false otherwise.
213213
*/
214214
private function reset_site_information() {
215+
\delete_transient( 'wpseo_site_information_quick' );
215216
return \delete_transient( 'wpseo_site_information' );
216217
}
217218

0 commit comments

Comments
 (0)