WapÁ÷Á¿Í³¼Æ¿ª·¢ÖÐʹÓÃCacheÐĵÃ
ÔÚ¡¶Ëû¾ËÍøwapÁ÷Á¿Í³¼Æ·ÖÎöƽ̨¡·¿ª·¢ÖÐΪÁËÌá¸ßϵͳµÄÐÔÄÜ£¬ÎÒÃÇÀûÓÃCacheÀ´±£´æÊý¾Ý£¬ÀýÈç°ÑÓû§µÄһЩȨÏÞÐÅÏ¢·ÅÔÚCacheÖУ¬µ«ÕâÑù×ö»áÓÐЩÎÊÌ⣬ºÎʱÇå³ýCacheÓëÊý¾Ý±£³Öͬ²½£¬ÏÂÃæÎÒÔÚÏîÄ¿ÖÐʹÓÃCacheµÄÐĵã¬Óë´ó¼Ò·ÖÏí¡£
Ò»¡¢ÀûÓÃCacheDependencyÀà
¡¡¡¡ËüÔÚÃüÃû¿Õ¼äSystem.Web.CachingÖС£CacheDependencyÀà»áÓëÎļþÖ®¼ä½¨Á¢ÒÀ¸½ÐÔ¹Øϵ¡£ÔÚÎļþ¸ü¸Äʱ£¬¸ÃCacheÏî»á×Ô¶¯ÒƳý¡£
·½·¨:
¡¡¡¡°ÑÓû§È¨ÏÞÐÅÏ¢±£Áô³ÉXMLÎļþ£¬µ±¹ÜÀíÔ±¸üÐÂÊý¾Ýʱ£¬Í¬Ê±¸üÐÂÕâ¸öXMLÎļþ¡£
´úÂ룺
//CahceֵΪXMLÎļþÄÚÈÝ
XmlDocument doc = Cache["user"] as XmlDocument;
if (doc == null)
{
doc = new XmlDocument();
string filePath = Server.MapPath("user.xml");
¡¡¡¡//½¨Á¢ÒÀÀµÏî
CacheDependency c = new CacheDependency(filePath);
doc.Load(filePath);
¡¡¡¡//½¨Á¢ÒÀÀµ¹Øϵ
Cache.Insert("skin", doc, c
,Cache.NoAbsoluteExpiration
,TimeSpan.fromMinutes(30)
);
}
¶þ¡¢ÀûÓÃSqlCacheDependencyÀà
¡¡¡¡ËüÒ²ÔÚÃüÃû¿Õ¼äSystem.Web.CachingÖУ¬SqlCacheDependency»áÓëÊý¾Ý¿â±í»òSQL Server²éѯ½á¹û½¨Á¢ÒÀÀµ¹Øϵ£¬ÕâÖÖ·½·¨²Ù×÷±È½Ï¸´ÔÓ¡£
²½¾Û1:
ÔÚWeb.ConfigÎļþÖÐÔö¼ÓÊý¾Ý¿âÁ¬½Ó´®ÓëCacheÅäÖýڵ㡣
<configuration>
<appSettings/>
<connectionStrings>
<add name="connStr" connectionString="server=192.168.1.24;uid=sa;pwd=l23;database=CacheTest;"/>
</connectionStrings>
<system.web>
<caching>
<sqlCacheDependency>
<databases>
<!--½ÚµãconnectionStringNamµÄÖµconnStr±ØÐëÓëÉÏÃ涨ÒåµÄÁ¬½Ó´®½ÚµãnameµÄÖµÏàͬ-->
<a
Ïà¹ØÎĵµ£º
ÔÚ±±¾©¡¢ÉϺ£µÄ´óÖгÇÊеĵØÌú¡¢¹«½»³µÉÏÔ½À´Ô½¶àµÄÄêÇáÈË¿ªÊ¼ÓÃÊÖ»úµÇ½WAPÊÖ»úÍøÕ¾£¬ä¯ÀÀÐÂÎÅ¡¢ÏÂÔØС˵£¬¸÷´óµ¼º½ÍøÕ¾Ò²ÍƳöÁË×Ô¼ºµÄwap°æ£¬Èçwap.71now.com
71nowÍøÖ·µ¼º½
È«¹úµ½µ×ÓжàÉÙWAPÍøÕ¾£¬´Ó¼ÇÕߵIJɷõ÷²éÀ´¿´£¬±È½ÏͳһµÄ˵·¨ÊÇ7000£9000¼Ò£¬¶àÕß¿ÉÄܹýÍò¡£
·ÇÃÎÍøWAPÊÖ»úÍøÕ¾ÊÇÖ¸¶ÀÁ¢ÓÚÖйúÒƶ¯ÊÕ·ÑÒƶ¯ ......
×î½üÒª×öÁ½¸öÒ³Ãæ¹ØÓÚwap×¢²áµÄ£¬ÒªÇóÑé֤ÿ¸öÊäÈëµÄÊôÐÔµÄÀàÐÍ×Ö·û£¬»¹Òªµ¯³öÑé֤ʲôµÄ£¬Å¼²»»áѽ~ÓÚÊǾͿ´¿´ÍøÉÏһЩÀàËƵijÌÐò»¹ÊDz»ÐУ¬ÓÈÆäÊÇwmlscriptµÄwmlsÎļþÔÚµ÷ÓõÄʱºòÊÖ»ú×ÜÊÇÏÔʾÏÂÔØÎļþ£¬ÓôÃÆ~~Ï£ÍûÔÚѧѧÁË~~
inputÊôÐÔÖÐemptyokÊôÐÔ£¬Ö»ÓÐÔÚÓû§Ìîд¹ýÒ»¸öÊôÐÔʱÔÙ×¢²á²ÅÌáʾûÓÐÌîдÍêÕû£¬Èç¹ûÓû§Ò»¸ ......
ÖÚËùÖÜÖª£¬WAPÊÇÊÊÓÃÓÚÊÖ»úµÄä¯ÀÀͨѶÐÒ飬ÒѾ±»¹ã·ºÊ¹Ó㬵«ÊÇÏÖÔÚÒƶ¯Í¨Ñ¶ÁìÓòµÄ3GÍøÂç¾Í¿ìÒªÀ´ÁÙÁË¡£Ëæ×Å3GÍøÂçµÄ¿ªÍ¨£¬ÎÞÏß»¥ÁªÍøµÄ´ø¿í½«µÃµ½ÖʵķÉÔ¾£¬½ìʱ£¬ÊÖ»úä¯ÀÀÆ÷¾Í¿ÉÒÔÖ±½ÓʹÓÃHTTPÐÒéͨѶ£¬ºÍPCä¯ÀÀÆ÷²ÉÓÃÍêȫͳһµÄä¯ÀÀ·½Ê½£¬WAP»¹ÓÐǰ;Âð£¿
ÌرðÊÇ¿´¿´ÏÖÔÚµÄiPhoneÊÖ»úÉÏÃæµÄsafariä¯ÀÀÆ÷£¬Ö±½Ó·ÃÎ ......
WAP¼¼ÊõÈëÃÅ
Ç°ÑÔ
¹ú¼Ê»¥ÁªÍøµÄм¼Êõ²ã³ö²»ÇËæ׏úÄÚÖйúÒƶ¯Í¨ÐźÍÖйúÁªÍ¨ÏȺóÍƳö£×£Á£ÐÊÖ»úÉÏÍøÒµÎñ£¬ ÕâÏîÐÂÐ˵ļ¼ÊõÒ²½¥½¥ÔÚ¹úÄÚչ¶ͷ½Å¡£ÆäʵÔçÔÚ£±£¹£¹£·Ä꣬ÓÉ°®Á¢ÐÅ¡¢Åµ»ùÑÇ¡¢Ä¦ÍÐÂÞÀ¡¢ Phone.comµÈ¹«Ë¾¹²Í¬·¢ÆðÁË£×£Á£Ð¡¡£Æ£ï£ò£õ£í£¬ËæºóÒµ½çÖÚ¶àµÄ¹«Ë¾·×·×¼ÓÈ룬²¢ÓÚ£±£¹£¹£¸ÄꣴÔ Ìá³öÁË£×£ ......