We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c171d95 commit a08e6f9Copy full SHA for a08e6f9
1 file changed
src/drop-in/advanced-cache.php
@@ -114,6 +114,18 @@ public function receive_output(
114
115
$cache_key = $method . md5( $_SERVER['REQUEST_URI'] );
116
117
+ $cached = $this->cache->get( $cache_key );
118
+ if ( $cached ) {
119
+ $response = json_decode( $cached, true );
120
+
121
+ header( $response['status_header'] );
122
+ foreach ( $response['headers'] as $header ) {
123
+ header( $header );
124
+ }
125
126
+ return $response['body'];
127
128
129
$response = [
130
'body' => $buffer,
131
'code' => $this->status_code,
0 commit comments