Prevent indefinite caching in Solid Security when Cache-Control: max-age=0
In core/modules/site-scanner/api.php, set_site_transient() currently receives (int) $mapped['max-age']directly. When max-age=0, WordPress interprets this as “no expiration” causing the transient to persist indefinitely.
Proposed fix: Only set the transient if max-age > 0 and no no-store or no-cache directives are present.
Posted on behalf of @slash2 from this thread: https://wordpress.org/support/topic/invalid-json-7/
Loading content, please wait...
Loading content, please wait...
Loading content, please wait...
Loading content, please wait...
Loading content, please wait...
Loading content, please wait...
Loading content, please wait...
Loading content, please wait...
Loading content, please wait...
Loading content, please wait...
Loading content, please wait...
Loading content, please wait...