Re: [Cppcms-users] Multiple class of render()
Brought to you by:
artyom-beilis
From: Artyom B. <art...@ya...> - 2012-06-21 09:46:13
|
Also if you have few js files you need to cache you can create your own function that servers them at application level. Mount with expression like /static/files/(foo|bar).js And then serve them from the application. And setup your own headers for files caching. Take a look on this guide: http://cppcms.com/wikipp/en/page/cppcms_1x_serving_static_files Also it is not so hard to add timestamps and cache headers to the internal file server. So if the patch would be given I'll gladly apply it. Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.com/ CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ ----- Original Message ----- > From: "ele...@ex..." <ele...@ex...> > To: cpp...@li... > Cc: > Sent: Thursday, June 21, 2012 12:38 PM > Subject: Re: [Cppcms-users] Multiple class of render() > >> Okay.. so my bottleneck is the integrated http server with its minimal >> http header. >> I can try to use a normal http server for the cppcms app, but I like >> the idea to have >> one executable to provide the whole web app with a http server. Maybe >> it is enough >> to enable cppcms caching. I need to rerun some tests/benchmarks. > > If JS/CSS is your bottle neck then cppcms cache isn't going to help you > much unless you put all your JS/CSS inline with HTML in which case it's is > still going to run slow. > > My nginx uses about 8MB of resident memory, but is fastest. > Lighthttpd uses about 2-3MB :) > > I think it's a sacrifice well spent. > > I know the idea of running a single executable may be appealing but in > practice using fastcgi + small webserver is a better option. > > Petr > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > |