Ñ£ºÍøÕ¾¼ÓËÙ--CacheΪÍõƪ
ÌáÉýÐÔÄܵÄͬʱΪÄã½ÚÔ¼10±¶ÒÔÉϳɱ¾¡£
Ò»£®Cache£¬ÍõµÀÒ²
ÎÒ¾õµÃϵͳ¼Ü¹¹²»Ó¦¸Ã½ö½öÊǴһ¸öÇ¿Ó²µÄÄܳÐÊܾ޴󲢷¢Ñ¹Á¦µÄºǫ́£¬Ç°¶ËÒ³ÃæÒ²ÊÇÐèÒª¼Ü¹¹µÄ¶øÇÒͬµÈÖØÒª£¬²»Àí½âǰ̨µÄµÄºǫ́¹¤³ÌʦÊDz»ºÏ¸ñµÄ¡£ÖйúÈ˽²¾¿¸ÖÈáÏà¼Ã£¬ºǫ́ǿӲֻÄÜ˵ÄãÄÚ¹¦Éîºñ£¬Ç°¶ËÓõÄÇÉ£¬ÄǽÐËÄÁ½²¦Ç§½ï¡£
Ò»°ãºǫ́¹¤³ÌʦºÜÉÙ¹ØÐÄÇ°¶ËÈçºÎʹÓÃ×Ô¼ºµÄ×ÊÔ´£¬¶øÇ°¶Ë¹¤³Ìʦ£¬²»ÖªµÀ×Ô¼ºµÄÒ»¸ö¼òµ¥µÄÓ÷¨»á¶Ôºó¶ËÔì³É¶à´óÓ°Ïì¡£ÎÒ»á¸ø³öһЩÊý¾Ý£¬À´Õðº³ÏÂÄãµÄÑÛÇò¡£
¶þ£®Cache »ù±¾ÔÀí½éÉÜ £¨²Î¿¼Caching Tutorial£©
ΪʲôʹÓÃCache£¿
1£®¼õÉÙÑÓ³Ù£¬ÈÃÄãµÄÍøÕ¾¸ü¿ì£¬Ìá¸ßÓû§ÌåÑé¡£
2£®±ÜÃâÍøÂçÓµÈû£¬¼õÉÙÇëÇóÁ¿£¬¼õÉÙÊä³ö´ø¿í¡£
²¹³äÒ»¸öcacheµÄÔÔò£º²»¸üеÄ×ÊÔ´¾Í²»Ó¦¸ÃÈÃËüÔٴβúÉúHTTPÇëÇó£¬Èç¹ûÇ¿ÖƲúÉúÁËÇëÇó£¬ÄÇô¾Í¿´¿´ÄÜ·ñ·µ»Ø304¡£
CacheµÄÖÖÀࣿ
ä¯ÀÀÆ÷Cache£¬´úÀíCache£¬Íø¹ØCache¡£
ºó¶Ë»¹ÓÐ disk cache £¬server cache£¬php cache£¬²»¹ý²»ÊôÓÚÎÒÃǽñÌìÌÖÂÛ·¶Î§¡£
CacheÈçºÎ¹¤×÷µÄ£¿
1£®Èç¹ûÏìӦͷ¸æËßcache±ð»º´æËü£¬cache²»¶ÔËü×ö»º´æ£»
2£®Èç¹ûÇëÇóÐèÒªÑéÖ¤µÄ»òÕßÊÇÐèÒª°²È«ÐԵģ¬Ëü½«²»±»»º´æ£»
3£®Èç¹ûÏìӦͷÀïûÓÐETag»òLast-Modifed headerÕâÀàÔªËØ£¬¶øÇÒҲûÓÐÈκÎÏÔʽµÄÐÅÏ¢¸æËßÈçºÎ¶ÔÊý¾Ý±£ÏÊ£¬ÔòËü±»ÈÏΪ²»¿É»º´æ¡£
4£®ÔÚÏÂÃæÇé¿öÏ£¬Ò»¸ö»º´æÏî±»ÈÏΪÊÇÐÂÏʵģ¨¼´£¬²»Ðèµ½ÔserverÉϼì²é¾Í¿ÉÖ±½Ó·¢Ë͸øclient£©£º
ËüÉèÖÃÁËÒ»¸ö¹ýÆÚʱ¼ä»òage-controllingÏìӦͷ£¬¶øÇÒÏÖÔÚÈÔδ¹ýÆÚ¡£
Èç¹ûä¯ÀÀÆ÷cacheÀïÓÐij¸öÊý¾ÝÏ²¢ÇÒ±»±»ÉèÖÃΪÿ¸ö»á»°£¨session£©¹ý³ÌÖÐÖ»¼ì²éÒ»´Î£»
Èç¹ûÒ»¸ö´úÀícacheÀïÄÜÕÒ¸öij¸öÊý¾ÝÏ²¢ÇÒËüÊÇÔÚÏà¶Ô½Ï³¤Ê±¼ä֮ǰ¸üйýµÄ¡£
ÍƼöÐÅÏ¢
- ¹¹½¨¸ß¿ÉÓú͵¯ÐÔÉìËõµÄKV´æ´¢ÏµÍ³
- ̸̸ÍøÕ¾¾²Ì¬»¯£¨¶þ£©
- ̸̸ÍøÕ¾¾²Ì¬»¯£¨Ò»£©
- Ðì¹úÏ飺΢²©ÊÇ·ñ»á²ÎÓëÍøÕ¾ÅÅÃû
- ApacheÔÚ±¾µØ½¨Á¢·ºÓòÃûÐéÄâÖ÷»ú¼ò·¨
- ÈçºÎ½øÐÐÍøÕ¾Õï¶Ï ΪÍøÕ¾½øÐÐÆÀ·Ö
- Ò»¸ö³É¹¦µÄÕ¾³¤Ó¦¸Ã¾ß±¸µÄËØÖÊ
- Ò»Ìõ΢²©Òý·¢µÄ·ÖÎö£ºÈçºÎÈÃ΢²©µÃµ½¹ã·º´«²¥
- ÈçºÎÈÃÒ»¸öÍøÕ¾ÓÐÇ¿´óÉúÃüÁ¦
- פ×ãIDCÃż÷³Ö±Ò¹ÛÍû Õ¾³¤Ñ¡¹º¿Õ¼ä³É¡°¼èÄѵľö¶¨¡±£¿
ÈÈÃÅÐÅÏ¢
- nohup: redirecting stderr to stdou....
- ʹÓÃlog_formatΪNginx·þÎñÆ÷ÉèÖøüÏêϸµÄÈÕÖ¾¸ñʽ
- jquery easyUI--dataGrid-Json
- [Ô´´]·ÂGoogle Reader¡¢ÐÂÀË΢²©¡¢ÌÚѶ΢²©µ....
- ÀûÓÃKeepalived+mysql¹¹½¨¸ß¿ÉÓÃMySQLË«Ö÷×Ô¶....
- Nginx+keepalivedʵÏÖ¸ºÔؾùºâºÍË«»úÈȱ¸¸ß¿ÉÓÃ
- jqueryʵÏÖÒ³Ãæ¼ÓÔؽø¶ÈÌõ
- Rolling cURL: PHP²¢·¢×î¼Ñʵ¼ù
- codeigniter ·ÓÉÖÕ¼«ÓÅ»¯(url rewrite)
- linuxÏÂÉèÖÃsshÎÞÃÜÂëµÇ¼
ÆÀÂÛ