{"id":60920,"date":"2025-04-26T09:53:05","date_gmt":"2025-04-26T01:53:05","guid":{"rendered":"https:\/\/fwq.ai\/blog\/60920\/"},"modified":"2025-04-26T09:53:05","modified_gmt":"2025-04-26T01:53:05","slug":"%e4%bc%98%e5%8c%96%e6%8f%90%e5%8d%87zencart%e7%9a%84%e6%80%a7%e8%83%bd%e6%8f%90%e9%ab%98%e7%bd%91%e7%ab%99%e9%80%9f%e5%ba%a6","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/60920\/","title":{"rendered":"\u4f18\u5316\u63d0\u5347zencart\u7684\u6027\u80fd\u63d0\u9ad8\u7f51\u7ad9\u901f\u5ea6"},"content":{"rendered":"<p> \u76f8\u6bd4\u4e8emagento\u7cfb\u7edf\uff0czen cart\u7684\u662f\u5c5e\u4e8e\u8f7b\u91cf\u578b\u7684\uff0c\u6bd4\u8f83\u9002\u5408\u4e2a\u4eba\u548c\u4e2d\u5c0f\u578b\u4f01\u4e1a\u7684\u4f7f\u7528\u3002\u6309\u91cf\u8bf4zen cart\u7684\u6027\u80fd\u548c\u901f\u5ea6\u90fd\u8fd8\u4e0d\u9519\u3002\u4e0d\u8fc7\uff0c\u5982\u679c\u4f60\u7684\u7ad9\u6bd4\u8f83\u591a\uff0c\u6216\u8005\u4ea7\u54c1\u6570\u91cf\u591a\uff0c\u5c31\u6709\u5fc5\u8981\u4f18\u5316\u4e00\u4e0b\u4e86\u3002\u8fd9\u91cc\u8bf4\u7684\u4f18\u5316\uff0c\u6709\u4e9b\u5176\u5b9e\u53ea\u662f\u540e\u53f0\u7684\u4e00\u4e9b\u914d\u7f6e\u5f00\u5173\uff0c\u6709\u4e9b\u5219\u9700\u8981\u670d\u52a1\u5668\u914d\u7f6e\u4e0a\u7684\u8c03\u6574\uff0c\u6709\u4e9b\u5219\u662f\u7a0b\u5e8f\u4e0a\u7684\u4f18\u5316\u3002<\/p>\n<p> zen cart\u914d\u7f6e\u65b9\u9762\uff0c\u6709\u5fc5\u8981\u5c06\u4e00\u4e9b\u65e0\u7528\u7684\u529f\u80fd\u901a\u8fc7\u540e\u53f0\u914d\u7f6e\u5173\u95ed\u6389\u4ee5\u63d0\u9ad8\u901f\u5ea6\uff1a<\/p>\n<p> 1\uff0c\u767b\u5165zen cart\u540e\u53f0 \u2014 Configuration \u2014 Attribute Settings&nbsp; \u5982\u679c\u4f60\u6ca1\u4f7f\u7528\u6389\u4e0b\u9762\u8fd9\u4e9b\uff0c\u5c31\u5173\u95ed\u6389<\/p>\n<p> Enable Downloads<br \/> Enable Price Factor<br \/> Enable Qty Price Discount<br \/> Enable Attribute Images<br \/> Enable Text Pricing by word or letter<\/p>\n<p> \u53ef\u4ee5\u4ece\u6570\u636e\u5e93\u76f4\u63a5\u6267\u884cSQL\u641e\u5b9a\u8fd9\u4e9b\u914d\u7f6e\uff1a<\/p>\n<p> UPDATE `configuration` SET `configuration_value` = &#8216;false&#8217; WHERE `configuration_key` like &#8216;DOWNLOAD_ENABLED&#8217;<br \/> UPDATE `configuration` SET `configuration_value` = &#8216;false&#8217; WHERE `configuration_key` like &#8216;ATTRIBUTES_ENABLED_PRICE_FACTOR&#8217;<br \/> UPDATE `configuration` SET `configuration_value` = &#8216;false&#8217; WHERE `configuration_key` like &#8216;ATTRIBUTES_ENABLED_QTY_PRICES&#8217;<br \/> UPDATE `configuration` SET `configuration_value` = &#8216;false&#8217; WHERE `configuration_key` like &#8216;ATTRIBUTES_ENABLED_IMAGES&#8217;<br \/> UPDATE `configuration` SET `configuration_value` = &#8216;false&#8217; WHERE `configuration_key` like &#8216;ATTRIBUTES_ENABLED_TEXT_PRICES&#8217;<\/p>\n<p> 2\uff0c\u767b\u5165zen cart\u540e\u53f0 \u2014 Configuration \u2014 Logging&nbsp; \u5173\u95ed\u6389zen cart\u7684\u65e5\u5fd7\uff0c\u4ee5\u53ca\u9875\u9762\u6267\u884c\u65f6\u95f4\u7684\u7edf\u8ba1<\/p>\n<p> Store Page Parse Time<br \/> Display The Page Parse Time<br \/> Store Database Queries<\/p>\n<p> \u76f8\u5e94\u7684\u64cd\u4f5c\u7684SQL\u8bed\u53e5\u5982\u4e0b\uff1a<\/p>\n<p> UPDATE `zen_configuration` SET `configuration_value` =&#8217;false&#8217; WHERE `configuration_key` LIKE &#8216;STORE_PAGE_PARSE_TIME&#8217;<br \/> UPDATE `zen_configuration` SET `configuration_value` =&#8217;false&#8217; WHERE `configuration_key` LIKE &#8216;STORE_PAGE_PARSE_TIME&#8217;<br \/> UPDATE `zen_configuration` SET `configuration_value` =&#8217;false&#8217; WHERE `configuration_key` LIKE &#8216;STORE_DB_TRANSACTIONS &#8216;<\/p>\n<p> 3\uff0c\u767b\u5165zen cart\u540e\u53f0 \u2014 Configuration \u2014 My Store \u2014 Show Category Counts \u5173\u95ed\u6389\u663e\u793a\u5206\u7c7b\u4ea7\u54c1\u6570\u91cf\u9009\u9879<\/p>\n<p> SQL\u8bed\u53e5\uff1a<\/p>\n<p> UPDATE `configuration` SET `configuration_value` = &#8216;false&#8217; WHERE `configuration_key` like &#8216;SHOW_COUNTS&#8217;<\/p>\n<p> 4\uff0c\u767b\u5165zen cart\u540e\u53f0 \u2014 Tools \u2014 Layout Boxes Controller&nbsp; \u5982\u679c\u4f60\u6ca1\u7528\u5230\u5236\u9020\u5546\u7684\u529f\u80fd\uff0c\u5173\u95ed\u6389\u5236\u9020\u5546side box<\/p>\n<p> sideboxes\/manufacturers.php<\/p>\n<p> SQL\u8bed\u53e5\uff1a<\/p>\n<p> UPDATE `layout_boxes` SET `layout_box_status` =0 WHERE `layout_box_name` LIKE &#8216;manufacturers.php&#8217;<\/p>\n<p> 5\uff0c\u767b\u5165zen cart\u540e\u53f0 \u2014 GZip Compression \u2014 Enable GZip Compression \u6253\u5f00gzip\u538b\u7f29<\/p>\n<p> SQL\u8bed\u53e5\uff1a<\/p>\n<p> UPDATE `zen_configuration` SET `configurtion_value` =1 WHERE `configuration_key` LIKE &#8216;GZIP_LEVEL&#8217;<\/p>\n<p> \u4f60\u53ef\u4ee5\u901a\u8fc7\u5728\u7ebfgzip\u538b\u7f29\u6d4b\u8bd5\u5de5\u5177\u6765\u6d4b\u8bd5\uff1a<\/p>\n<p> http:\/\/www.whatsmyip.org\/http-compression-test\/<br \/> http:\/\/nontroppo.org\/tools\/gziptest\/<\/p>\n<p> http:\/\/www.gidnetwork.com\/tools\/gzip-test.php<\/p>\n<p> \u53e6\u5916\uff0c\u4f18\u5316\u9996\u9875\uff0c\u8c03\u67e5\u7814\u7a76\u8868\u660e\uff0c\u5982\u679c\u9996\u9875\u52a0\u8f7d\u65f6\u95f4\u592a\u957f\u4f1a\u5bfc\u81f4\u5927\u90e8\u5206\u5ba2\u6237\u8f6c\u5411\u7ade\u4e89\u5bf9\u624b\uff0c\u6240\u4ee5\uff0c\u9996\u9875\u4e0d\u8981\u52a0\u8f7d\u592a\u591a\u7684\u4ea7\u54c1\u548c\u56fe\u7247\uff0c\u751a\u81f3\u53ef\u4ee5\u8003\u8651\u76f4\u63a5\u5173\u6389\u4e00\u4e9b\u4e0d\u592a\u5fc5\u8981\u7684\u5185\u5bb9block\uff0c\u5982tell a friend\uff0c\u7269\u4ef7\u4ea7\u54c1\uff0c\u65b0\u4ea7\u54c1\u6216\u63a8\u8350\u4ea7\u54c1\u3002<\/p>\n<p> \u538b\u7f29zen cart\u7f51\u7ad9\u7684\u6240\u6709css,js\u4ee3\u7801\u3002\u786e\u4fdd\u7f51\u7ad9\u7684\u6837\u5f0f\u6587\u4ef6\u4e2d\u6ca1\u6709\u5bf9\u4e0d\u5b58\u5728\u56fe\u7247\u7684\u5f15\u7528\uff0c\u56e0\u4e3a\u8fd9\u6837\u4f1a\u589e\u52a0\u9875\u9762\u7684\u7b49\u5f85\u54cd\u5e94\u65f6\u95f4\u3002<\/p>\n<p> &nbsp;\u4f18\u5316\u7ad9\u70b9\u5185\u4ea7\u54c1\u56fe\u7247\u3002\u9ed8\u8ba4\u60c5\u51b5\u4e0b\u6240\u6709\u7684\u4ea7\u54c1\u56fe\u7247\u90fd\u4fdd\u5b58\u5728\u4e00\u4e2a\u76ee\u5f55\u4e0b\uff0c\u5f53\u4e00\u4e2a\u76ee\u5f55\u4e0b\u56fe\u7247\u6587\u4ef6\u6570\u91cf\u6bd4\u8f83\u591a\u7684\u65f6\u5019\u5c31\u4f1a\u964d\u4f4ezen cart\u7684\u901f\u5ea6\u3002\u8bd5\u60f3\u4e00\u4e0b\uff0c\u4ece1W\u4e2a\u56fe\u7247\u4e2d\u627e\u5230\u4e00\u4e2a\u56fe\u7247\u7684\u65f6\u95f4\u5feb\u8fd8\u662f\u4ece100\u4e2a\u4e2d\u53d6\u51fa\u4e00\u4e2a\u56fe\u7247\u6765\u5f97\u5feb\uff0c\u867d\u7136\u6bd4\u55bb\u4e0d\u662f\u5f88\u8d34\u5207\u3002<\/p>\n<p> \u9ad8\u7ea7\u4f18\u5316\uff1a<\/p>\n<p> a,\u5b89\u88c5APC,eAccelerator PHP\u6a21\u5757\u63d0\u5347PHP\u89e3\u6790\u901f\u5ea6<br \/> b,\u8bbe\u7f6e\u7d22\u5f15\u4f18\u5316\u67e5\u8be2\uff0c\u5982\u679c\u67d0\u4e2a\u8868\u7684\u6570\u636e\u91cf\u6bd4\u8f83\u5927\uff0c\u53c8\u9700\u8981\u7ecf\u5e38\u67e5\u8be2\u68c0\u7d22\u3002\u90a3\u4e48\u6700\u597d\u5bf9\u7528\u6765\u68c0\u7d22\u7684\u5b57\u6bb5\u8bbe\u7f6e\u7d22\u5f15(index)\uff0c\u8fd9\u6837\u53ef\u4ee5\u5927\u5927\u63d0\u5347\u6570\u636e\u5e93\u68c0\u7d22\u64cd\u4f5c\u7684\u6027\u80fd\u3002\u4f60\u53ef\u4ee5\u901a\u8fc7\u4e0b\u9762\u8fd9\u4e2aSQL\u8bed\u53e5\u6dfb\u52a0\u4e00\u4e2a\u7d22\u5f15\uff0c\u6bd4\u5982\u5c06\u8868sample\u4e2d\u7684number\u5b57\u6bb5\u8bbe\u7f6e\u6210\u7d22\u5f15<\/p>\n<p> ALTER TABLE sample ADD INDEX (number);<\/p>\n<p> c,\u4f18\u5316\u8868\uff0c\u4e0b\u9762\u8fd9\u4e2aSQL\u8bed\u53e5\u53ef\u4ee5\u5e2e\u4f60\u8f7b\u677e\u5b8c\u6210\u8fd9\u4e9b\u5de5\u4f5c<\/p>\n<p> OPTIMIZE TABLE table_xxx<\/p>\n<p> &nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u76f8\u6bd4\u4e8emagento\u7cfb\u7edf\uff0czen cart\u7684\u662f\u5c5e\u4e8e\u8f7b\u91cf\u578b\u7684\uff0c\u6bd4\u8f83\u9002\u5408\u4e2a\u4eba\u548c\u4e2d\u5c0f\u578b\u4f01\u4e1a\u7684\u4f7f\u7528\u3002\u6309\u91cf\u8bf4zen cart\u7684\u6027\u80fd\u548c\u901f\u5ea6\u90fd\u8fd8\u4e0d\u9519\u3002\u4e0d\u8fc7\uff0c\u5982\u679c\u4f60\u7684\u7ad9\u6bd4\u8f83\u591a\uff0c\u6216\u8005\u4ea7\u54c1\u6570\u91cf\u591a\uff0c\u5c31\u6709\u5fc5\u8981\u4f18\u5316\u4e00\u4e0b\u4e86\u3002\u8fd9\u91cc\u8bf4\u7684\u4f18\u5316\uff0c\u6709\u4e9b\u5176\u5b9e\u53ea\u662f\u540e\u53f0\u7684\u4e00\u4e9b\u914d\u7f6e\u5f00\u5173\uff0c\u6709\u4e9b\u5219\u9700\u8981\u670d\u52a1\u5668\u914d\u7f6e\u4e0a\u7684\u8c03\u6574\uff0c\u6709\u4e9b\u5219\u662f\u7a0b\u5e8f\u4e0a\u7684\u4f18\u5316\u3002 zen cart\u914d\u7f6e\u65b9\u9762\uff0c\u6709\u5fc5\u8981\u5c06\u4e00\u4e9b\u65e0\u7528\u7684\u529f\u80fd\u901a\u8fc7\u540e\u53f0\u914d\u7f6e\u5173\u95ed\u6389\u4ee5\u63d0\u9ad8\u901f\u5ea6\uff1a 1\uff0c\u767b\u5165zen cart\u540e\u53f0 \u2014 Configuration \u2014 Attribute Settings&nbsp; \u5982\u679c\u4f60\u6ca1\u4f7f\u7528\u6389\u4e0b\u9762\u8fd9\u4e9b\uff0c\u5c31\u5173\u95ed\u6389 Enable Downloads Enable Price Factor Enable Qty Price Discount Enable Attribute Images Enable Text Pricing by word or letter \u53ef\u4ee5\u4ece\u6570\u636e\u5e93\u76f4\u63a5\u6267\u884cSQL\u641e\u5b9a\u8fd9\u4e9b\u914d\u7f6e\uff1a UPDATE `configuration` SET `configuration_value` = &#8216;false&#8217; WHERE `configuration_key` like &#8216;DOWNLOAD_ENABLED&#8217; UPDATE `configuration` SET `configuration_value` = &#8216;false&#8217; WHERE `configuration_key` like &#8216;ATTRIBUTES_ENABLED_PRICE_FACTOR&#8217; UPDATE `configuration` [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[],"class_list":["post-60920","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/60920","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=60920"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/60920\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=60920"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=60920"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=60920"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}