Featured post

c# - Usage of Server Side Controls in MVC Frame work -

i using asp.net 4.0 , mvc 2.0 web application. project requiremrnt have use server side control in application not possibl in noraml case. ideally want use adrotator control , datalist control. i saw few samples , references in codepleax mvc controllib howwver found less useful. can tell how utilize theese controls in asp.net application along mvc. note: please provide functionalities related adrotator , datalist controls not equivalent functionalities thanks in advace. mvc pages not use normal .net solution makes use of normal .net components impossible. a normal .net page use event driven solution call different methods service side mvc use actions , view completly different way handle things. also, mvc not use viewstate normal .net controlls require. found article discussing mixing of normal .net , mvc.

Django memcached won't cache a large template output -


i using django memcached.

in 1 of templates, added

{% cache 28800 template_browse_gene_list %} ... {% endcache %} 

the stuff in block rather large, on 1 mb; result of iterating through expensive sql returns lots of data. since queryset lazily evaluated, using cache here avoids sql, if cache works.

when use locmem cache backend, works. avoid sql , cached result.

when hookup memcached, -i 4m setting, following in verbose output:

<30 new auto-negotiating client connection 30: client using ascii protocol .... <30 template.cache.template_browse_gene_list.d41d8cd98f00b204e9800998ecf8427e >30 end <30 connection closed. 

the connection closed line displayed page returned, after quite wait. think when sql done, connection closed message appears. basically, nothing gets memcached entry. again, worked locmem.

any thoughts?

thanks.

found this... explains it...

memcache won't store key/value because value big


Comments

Popular posts from this blog

c# - Usage of Server Side Controls in MVC Frame work -

cocoa - Nesting arrays into NSDictionary object (Objective-C) -

ios - Very simple iPhone App crashes on UILabel settext -