WP_CACHE not working
-
I ran into the weird problem that every request for a page did NOT work on the first attempt, but DID work on the second attempt, as shown in this terminal session (domain name changed to example.com);
%telnet https://www.example.com 80
Trying 194.151.97.132…
Connected to https://www.example.com.
Escape character is ‘^]’.
GET https://www.example.com/index.php HTTP/1.0HTTP/1.1 404 Not Found
Date: Tue, 15 Aug 2006 07:46:27 GMT
Server: Apache
X-Powered-By: PHP/5.1.4
Set-Cookie: PHPSESSID=qv944snjdbtfqtaukv77ecab00; path=/
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
X-Pingback: https://www.example.com/xmlrpc.php
Status: 404 Not Found
Vary: Accept-Encoding,User-Agent
Content-Length: 1
Connection: close
Content-Type: text/html; charset=”UTF-8″Connection closed by foreign host.
%telnet https://www.example.com 80
Trying 194.151.97.132…
Connected to https://www.example.com.
Escape character is ‘^]’.
GET https://www.example.com/index.php HTTP/1.0HTTP/1.1 200 OK
Date: Tue, 15 Aug 2006 07:46:41 GMT
Server: Apache
X-Powered-By: PHP/5.1.4
Set-Cookie: PHPSESSID=83jrskdpmdh0eonoekboi47s32; path=/
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Vary: Accept-Encoding,User-Agent
Connection: close
Content-Type: text/html; charset=UTF-8<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>
<html xmlns=”https://www.w3.org/1999/xhtml”><head profile=”https://gmpg.org/xfn/11″>
(etc, rest of html skipped)
When I comment the line define(‘WP_CACHE’, true); in wp-config.php, the problem diseappears.
Anybody else seen this?
- The topic ‘WP_CACHE not working’ is closed to new replies.