lighttpd forum lighty > [help] how to read request data from vector instead of file?

Posted by Francesco (Guest)
on 07.10.2008 08:41
hi i've taken a look at the forum but didn't found so much bout that.. 
what i would like to do is something like a different caching system...
i have tons of request always on same 1000 / 2000 small files...

i'm sure that for who knows how lighttpd source work would be easy...

i want to know where to put the code ... (i should be able to make it..)
1) to read files into my vector at lighttpd startup and maybe refresh 
these on time basis.

2) grab the http requests, read the filename and get the right file from 
vetor returning vector(file) content instead of file(hard disk) content 
,

3) the mod_accesslog should continue to do his dirty work tracking all 
requests... i just want to change the file locations from hard disk to 
my vector ...

if u can help me a bit with these on this i'll post here then benchmarks 
on how that works.. :D (maybe is not so much faster than standard 
caching system... but i need this solution for a lot of reasons :P also 
the file content will be edited live in c++ inside lighttpd and some 
other things have to change...  so i need to do this using internal 
vector instead of file .. :P )


thank you all!
Francesco