在使用WordPress寫文章時,大家應該都會發現如果你對某篇文章進行了修改,之後會看到WordPress自動幫你儲存了修改修改後的文章版本,方便你需要的時候能回復到先前的文章版本,只是像是筆者本身,修改文章的頻率很高,而且WordPress同一篇一直儲存那麼多的文章版本,對你的資料庫也是一個不必要的負擔,反而還會影響網站的效能,而大家只要修改一個簡單的參數設定,就能直接停用WordPress文章版本功能,讓你網站不再儲存你不需要的資料。
第一步:在我們設定前,你可以在文章編輯區的「發表」區域看到這邊文章有幾個版本,而每個版本WordPress還幫你比較差異,算是一個貼心的功能,只是卻也造成負擔,如圖就是WordPress文章版本比較的功能
第二步:這次要設定的檔案位在你存放WordPress的根目錄,名稱為wp-config.php,看你是要把它從自己的網站下載回來還是使用主機商提供的後台檔案管理器直接修改都可以
第三步:打開wp-config.php檔案後,大約在74行的地方,你會找到「WordPress 文章版本設定」中有一行
[cc lang=’php’ ]define(‘WP_POST_REVISIONS’, true );[/cc]其中的true值換成false,像是
[cc lang=’php’ ]define(‘WP_POST_REVISIONS’, false );[/cc]
而如果你想要指定指定最大版本數量,請將true設成一個整數值即可。
第四步:儲存成功或者是將儲存完成的檔案透過FTP上傳覆蓋原本的檔案即完成設定囉,回到後台會發現文章版本的選項已經消失囉~
Thinking about a loan against your home to consolidate your debts? Explore your choices and see what solutions may be available to you.
You may be able to borrow more and enjoy lower monthly repayments by taking out a loan secured on your property. Review current offers today.
If you’re a homeowner looking to borrow money, a secured loan could be a wise option. Leverage better rates by using your home as security.
Discover how a homeowner loan can help you access the money you need without parting with your home. Compare lenders and tailor a plan that fits your needs.
Thinking about releasing equity from your home? Compare top lenders and understand your financial responsibilities before making a decision.
Uncertain whether a secured loan is right for you? Explore the benefits, such as lower interest rates and increased flexibility.
You may be able to borrow more and enjoy better interest rates by using your home’s equity. Review current offers today.
Thinking about a secured loan to manage your financial obligations? Explore your choices and see what solutions may be available to you.
Uncertain whether a secured loan is right for you? Understand the benefits, such as lower interest rates and larger borrowing amounts.
Considering releasing equity from your home? Compare top lenders and understand your rights and obligations before making a decision.
You may be able to secure larger loans and enjoy lower monthly repayments by taking out a loan secured on your property. Find the best current offers today.
Not sure if a secured loan is right for you? Explore the benefits, such as more favourable terms and increased flexibility.
Uncertain whether a secured loan is right for you? Explore the benefits, such as more favourable terms and increased flexibility.
Uncertain whether a secured loan is right for you? Understand the benefits, such as more favourable terms and increased flexibility.
Explore how a secured loan can help you access the money you need without parting with your home. Review lenders and tailor a plan that fits your needs.
Are you considering a loan against your home to consolidate your debts? Explore your choices and see what solutions may be available to you.
Considering releasing equity from your home? Compare top lenders and learn about your financial responsibilities before making a decision.
If you’re a property owner looking to borrow money, a secured loan could be a wise option. Access better rates by using your home as security.
Thinking about a loan against your home to consolidate your financial obligations? Explore your choices and see what solutions may be available to you.
Thinking about releasing equity from your home? Review top lenders and learn about your rights and obligations before making a decision.
Considering releasing equity from your home? Compare top lenders and learn about your rights and obligations before making a decision.
Equity release solutions may provide the financial support you’ve been looking for. Learn how to use the equity tied up in your home without having to move.
Thinking about releasing equity from your home? Review top lenders and understand your financial responsibilities before making a decision.
Thinking about releasing equity from your home? Compare top lenders and learn about your financial responsibilities before making a decision.
Are you considering a secured loan to manage your financial obligations? Explore your choices and check what solutions may be available to you.
Release the equity in your property with a secure home equity loan — ideal for covering home improvements, major purchases, or refinancing.
Are you considering a loan against your home to consolidate your financial obligations? Explore your choices and check what solutions may be available to you.
Discover how a homeowner loan can help you obtain the money you need without parting with your home. Compare lenders and tailor a plan that fits your needs.
}