
a.alfimov at gmail
Oct 8, 2009, 11:46 AM
Post #3 of 8
(1081 views)
Permalink
|
|
Re: Cannot compile mod_disk_cache.c (rev. 821993)
[In reply to]
|
|
Jeff Trawick <trawick [at] gmail> писал(а) в своём письме Thu, 08 Oct 2009 21:15:51 +0300: > Try adding "#define CORE_PRIVATE" inside mod_disk_cache.c prior to the > inclusion of header files. > > What you've encountered is an API difference between httpd 2.2 and > 2.3-dev. There may be others that show up at compile, link, or > run-time. (Maybe somebody here has actually used recent mod*cache > from trunk with 2.2 and can comment.) > > I guess you're anxious to try a fix that is in svn trunk but not in > the 2.2.x branch? I wonder if backporting the individual fix is less > troublesome... Jeff, Thank you very much for the quick response. Adding a CORE_PRIVATE did a trick -- I was able to compile mod_disk_cache.c Unfortunately, this didn't help to solve the root problem. I want to try the "CacheQuickHandler Off" directive which became available in Apache 2.3 Here is my mod_cache configuration: CacheDefaultExpire 120 CacheMaxExpire 120 CacheIgnoreNoLastMod On CacheIgnoreHeaders On CacheIgnoreCacheControl On CacheStoreNoStore On CacheStorePrivate On CacheQuickHandler Off <IfModule mod_disk_cache.c> CacheRoot /tmp/apache-cache-l2 CacheEnable disk / CacheDirLevels 8 CacheDirLength 2 </IfModule> As soon as I disable the CacheQuickHandler, caching stops working (no new directories appear in the cache directory). Thank you. -- Best Regards, Alexander Alfimov
|