logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: cache_socache_module
Author
denisa



Joined: 13 Apr 2015
Posts: 2

PostPosted: Tue 14 Apr '15 16:55    Post subject: cache_socache_module Reply with quote

I haven't found many discussions on mod_cache_socache topic.

httpd.apache.org documentation for CacheSocacheReadSize directive (mod_cache_socache) says:
Quote:
"The CacheSocacheReadSize directive sets the minimum amount of data, in bytes, to be read from the backend before the data is sent to the client."


Whereas, enabled info_module explains it this way:
Quote:
"CacheSocacheReadSize - The maximum quantity of data to attempt to read and cache in one go."


I can set my mind to understand that words 'minimum' and 'maximum' in the definitions above don't contradict each other, but still, I would like to clear my doubts...

Let's stick with the example given in the official documentation:
Quote:
CacheSocacheReadSize 102400

...which is 100kB.

Could somebody analyse how would cached documents/assets of http response have been handled if their size is either smaller or greater than 100kB?

Let's say...
A style.css is 8.5kB and script.js is 115 kB.

Can I say that style.css is going to be sent to the client in 1 go,
whereas script.js is going to be sent in 2 goes (100 + 15, perhaps)?

What performance consequences we can get if we set this value to 0.
What performance consequences we can get if we set this value to 1B.
What performance consequences we can get if we set this value to 100B and if the biggest cached document is 64kB, average is 20kB.

Thanks ahead...
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7373
Location: Germany, Next to Hamburg

PostPosted: Wed 15 Apr '15 15:42    Post subject: Reply with quote

Which cache provider do you use?

http://httpd.apache.org/docs/trunk/socache.html

I think you want to use mod_file_cache See http://httpd.apache.org/docs/2.4/caching.html#file-caching
Back to top
denisa



Joined: 13 Apr 2015
Posts: 2

PostPosted: Wed 15 Apr '15 16:46    Post subject: Reply with quote

Cache provider is set to mod_socache_memcache:

CacheSocache memcache:127.0.0.1:11211
Back to top


Reply to topic   Topic: cache_socache_module View previous topic :: View next topic
Post new topic   Forum Index -> Apache