ปิดการทำงาน Autosave และ Revisions ของ WordPress

This item was filled under [ Web Design ]

ปกติเวลาเราเขียน post หรือ page ใหม่ใน wordpress นั้น ตัว wordpress จะทำการ save อัตโนมัติทุกครั้ง (Autosave) และเก็บการเปลี่ยนแปลงทุกครั้งไว้ด้วย (เรียกว่า Revision) ซึ่งทำให้ตารางในฐานข้อมูลของเราใหญ่ขึ้น เพราะ 1 Revision เท่ากับ 1 Post และ post_id ก็จะเพิ่มขึ้นด้วย เช่น Post ที่ 1 มี post_id=1 และเมื่อเราทำการแก้ไขไป 5 ครั้ง แล้วเราเขียน Post ที่ 2 จะมี post_id=7 เพราะ post_id ที่ 2-6 ถูกใช้โดย Revision ของ Post ที่ 1 ไปแล้ว
http://www.example.com/?p=1

http://www.example.com/?p=7

การปิดการทำงานระบบ Autosave และ Revisions ของ WordPress นั้นสามารถใช้ Plugin ชื่อ Disable Revisions and Autosave สำหรับคนที่ไม่ชอบระบบ Autosave และ Revisions ลองใช้ดูครับ (เลือกได้ว่าจะปิดอย่างใดอย่างหนึ่ง หรือทั้งสองอย่างครับ)

Download
disable-autosave.zip (Right Click – Save As) – Disable Autosave function
disable-revisions.zip (Right Click – Save As) – Disable Revisions function
disable-revisions-and-autosave.zip (Right Click – Save As) – Disable Revisions and Autosave at the same time.

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • Technorati
  • StumbleUpon
  • email
  • Print

เรื่องที่เกี่ยวข้อง

Rate this topic:
1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...
Popularity: 1,011 views
Tagged with: [ , , ]
You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

One Comment on “ปิดการทำงาน Autosave และ Revisions ของ WordPress”

Trackbacks

  1. Don-Jai : โดนใจ | [WP] Compare Revisions of Wordpress

Leave a Comment

You must be logged in to post a comment.