erlyaws / yaws

Yaws webserver
https://erlyaws.github.io
BSD 3-Clause "New" or "Revised" License
1.28k stars 268 forks source link

cache options #2

Closed klacke closed 15 years ago

klacke commented 15 years ago

I attempted to turn caching off by specifying "max_num_cached_files = 0" in yaws.conf, but after the first page access, beam uses 100% CPU, and there is hundreds of messages like below added to the report.log:

=INFO REPORT==== 3-Aug-2008::21:55:01 === Max size cached bytes reached for server "ltop"

vinoski commented 15 years ago

This was caused by attempts to clear the cache and try again, infinitely. I've committed regression tests for this scenario as well as the fix.