On 30/11/10 02:41, Ming Fu wrote:
Hi Henrik,
Thanks for point out that I need to use the if..else--endif statement, however, I can't find the condition macros for the if to test.
For example,
If "first worker"
Cache_dir here ...
Else
Cache_dir there ...
Endif
How do I say the "first worker"?
if ${process_number} = 1
...
else
...
endif
Another method if you want a cache_dir for each is to have a numbered
subdirectory for each worker:
cache_dir aufs /var/cache/${process_number} ...
Then squid -z to create as usual. Just remember that this will take up N
times the configured directory size.
Amos
--
Please be using
Current Stable Squid 2.7.STABLE9 or 3.1.9
Beta testers wanted for 3.2.0.3