But when a caching tool is most interesting ?
- always
- only for very higly dynamic pages
- only for dynamic pages that are updated once a day
- ...
With CP2 wath's the best caching tool ?
build-in in cp2 ? which one ?
external tool ? which one ? (I'm on linux)
For each solution, Have you measured the impact on performance ?
I'm not using cheetah (which seems to have one).
Thanks.
I'm following the explaination posted in
http://www.cherrypy.org/wiki/CacheFilter
I'm using svn trunk
but got an error:
2005/02/13 11:46:38 CONFIG INFO Reading infos from configFile:
config.conf
2005/02/13 11:46:38 CONFIG INFO Server parameters:
2005/02/13 11:46:38 CONFIG INFO logToScreen: 1
2005/02/13 11:46:38 CONFIG INFO logFile:
2005/02/13 11:46:38 CONFIG INFO protocolVersion: HTTP/1.0
2005/02/13 11:46:38 CONFIG INFO socketHost:
2005/02/13 11:46:38 CONFIG INFO socketPort: 7080
2005/02/13 11:46:38 CONFIG INFO socketFile:
2005/02/13 11:46:38 CONFIG INFO reverseDNS: 0
2005/02/13 11:46:38 CONFIG INFO socketQueueSize: 5
2005/02/13 11:46:38 CONFIG INFO processPool: 0
2005/02/13 11:46:38 CONFIG INFO threadPool: 1
2005/02/13 11:46:38 CONFIG INFO threading: 0
2005/02/13 11:46:38 CONFIG INFO forking: 0
2005/02/13 11:46:38 CONFIG INFO sslKeyFile:
2005/02/13 11:46:38 CONFIG INFO sessionStorageType: ram
2005/02/13 11:46:38 CONFIG INFO sessionTimeout: 60 min
2005/02/13 11:46:38 CONFIG INFO cleanUpDelay: 60 min
2005/02/13 11:46:38 CONFIG INFO sessionCookieName: CherryPySession
2005/02/13 11:46:38 CONFIG INFO sessionStorageFileDir:
2005/02/13 11:46:38 CONFIG INFO staticContent: []
2005/02/13 11:46:38 HTTP INFO Serving HTTP on socket: ('', 7080)
2005/02/13 11:46:42 HTTP INFO 127.0.0.1 - GET /index HTTP/1.1
----------------------------------------
Exception happened during processing of request from ('127.0.0.1',
1932)
Traceback (most recent call last):
File "/nusr/lib/python2.3/SocketServer.py", line 222, in
handle_request
self.process_request(request, client_address)
File "/nusr/lib/python2.3/SocketServer.py", line 241, in
process_request
self.finish_request(request, client_address)
File "/nusr/lib/python2.3/SocketServer.py", line 254, in
finish_request
self.RequestHandlerClass(request, client_address, self)
File "/nusr/lib/python2.3/SocketServer.py", line 521, in __init__
self.handle()
File "/nusr/lib/python2.3/BaseHTTPServer.py", line 324, in handle
self.handle_one_request()
File "/nusr/lib/python2.3/BaseHTTPServer.py", line 318, in
handle_one_request
method()
File "/usr/lib/python2.3/site-packages/cherrypy/_cphttpserver.py",
line 127, in do_GET
self.wfile
File "/usr/lib/python2.3/site-packages/cherrypy/_cphttptools.py",
line 186, in doRequest
initRequest(clientAddress, remoteHost, requestLine, headers, rfile,
wfile)
File "/usr/lib/python2.3/site-packages/cherrypy/_cphttptools.py",
line 183, in initRequest
applyFilterList('afterRequestBody')
File "/usr/lib/python2.3/site-packages/cherrypy/_cphttptools.py",
line 150, in applyFilterList
method()
File
"/usr/lib/python2.3/site-packages/cherrypy/lib/filter/cachefilter.py",
line 184, in afterRequestBody
cpg.response.wfile = Tee(cpg.response.wfile, cpg._cache.maxobjsize)
File "/usr/lib/python2.3/site-packages/cherrypy/_cputil.py", line 58,
in __getattr__
return self.__dict__['threadMap'][id][name]
KeyError: 16384