Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

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É̺ÜÊÜÉË


    ½üÒ»¶Îʱ¼ä£¬ÓйØÊÖ»ú
Éæ»ÆÎÊÌâµÄ±¨µÀ²ã³ö²»ÇӵÓÐ5ÒÚ¶àÊÖ»úÓû§µÄÖйúÒƶ¯
³ÉΪÓßÂÛ½¹µã¡£ÔÚýÌåÓßÂÛµÄÖ¸ÔðÏ£¬²»¿°Ñ¹Á¦µÄÖйúÒƶ¯²ÉÈ¡Á˵½Ä¿Ç°ÎªÖ¹×îÑÏÀ÷µÄÊÖ¶ÎÕû¶ÙÊÖ»úÉ«ÇéÍøÕ¾¡£´Ó11ÔÂ30ÈÕÆð£¬ÖйúÒƶ¯¶ÔËùÓÐWAP
ÀàÒµÎñºÏ×÷»ï°éÔÝÍ£¼Æ·Ñ£¬½øÐÐÈ«ÃæÇåÀí£¬ÒÔÕ¶¶ÏÒù»àÉ«ÇéÍøÕ¾ÊÕ·ÑÁ´Ìõ¡£
  ......

×îÐÂÃâ·ÑwapÍøÖ·´óÈ«

×îÐÂÃâ·ÑÍøÖ·´óÈ«
ÕâЩÃâ·ÑwapÍøÖ·ÓÉÃâ·ÑWAPÖ®¼Ò£ºsetian.cn£¨ÊÖ»úµÇ½£©ÊÕ¼¯ÕûÀí£¬»¶Ó­´ó¼Ò²¹³ä£¬ÕâЩÍøÕ¾¶¼·Ç³£ºÃ£¬ÁíÍâSPºÍÔËÓªÉ̵ÄÕ¾Ôݲ»ÍƼö£¬ÒòΪ¿ÉÄÜÊÇÊշѵģ¬ÏÂÃæµÄÈ«ÊÇÃâ·ÑµÄ£¬Çë´ó¼Ò·ÅÐÄʹÓᣣ¨×¢Ò⣺ÕâЩվµã±ØÐëÊÖ»úµÇ½²Å¿ÉÒÔ£©
µ¼º½Àࣺ
71nowµ¼º½wap.71now.com
9991µ¼º½wap.9991.com
hao123µ¼º½wap. ......

½¨ÉèWAPÍøÕ¾

1.Ê×ÏÈÄãÒª½¨ÉèÄÄÖÖWAPÍøÕ¾£¬1.2»¹ÊÇ2.0£¬2.0¸üÃÀ¹Û£¬Ç°ÕßÓïÑÔΪWMLÓïÑÔ£¬ºóÕßΪXHTML MPÓïÑÔ¡£
ѧϰWML¿ÉÒÔÍƼö¿Æѧ³ö°æÉçµÄ¡¶¾«Í¨WAP/WML¡·¡£
ѧϰXHTML MP¿ÉÒÔµ½Öйú±»°®¿ÉÒÔÔÚÏßÏÂÔØ£º¡¶XHTML Òƶ¯¸ÅÒª (XHTML MP) / WAP 2.0 ½Ì³Ì¡·
2.ÊÖ»ú¿ª·¢¹¤¾ßÒ»°ãËù¼û¼´ËùµÃµÄ£¬»¹Ã»ÓС£×î³£ÓõļÇʱ¾ÎªÖ÷£¬µ±È»¼òµ¥µÄÒ²¿ÉÒÔÓ ......

WAPÕ¾µãµÄMIMEÀàÐÍÓÐÄÄЩ£¿ÈçºÎÌí¼Ó£¿

Ç°Ò»Õó²ÎÓ뿪·¢ÁËÒ»¸öwapÍøÕ¾·¢ÏÖÐèÒªÌí¼ÓºÜ¶àMIMEÀàÐÍ
µ½µ×ʲôÊÇMIMEÀàÐÍÄØ£¿
MIMEÀàÐ;ÍÊÇÉ趨ijÖÖÀ©Õ¹ÃûµÄÎļþÓÃÒ»ÖÖÓ¦ÓóÌÐòÀ´´ò¿ªµÄ·½Ê½ÀàÐÍ£¬µ±¸ÃÀ©Õ¹ÃûÎļþ±»·ÃÎʵÄʱºò£¬ä¯ÀÀÆ÷»á×Ô¶¯Ê¹ÓÃÖ¸¶¨Ó¦ÓóÌÐòÀ´´ò¿ª¡£
ÄÃIISÀ´Ëµ°É Èç¹ûÄãÏ£ÍûÓÃIISÀ´×öwapServer ÄǾͱØÐëÌí¼ÓMIMEÀàÐÍ£¬·ñÔòÕâЩδע²áµÄÀ©Õ¹ÃûÊDz»Äܱ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ