Cok yararlı bulduğum bir cache eklentisini yazmak istedim. Bu eklenti sayesinde gercekten guzel bir cache sisteminiz oluyor ve site hızınızda inanılmaz artış goruyorsunuz.

Oncelikle indemeniz gerek eklenti:
http://wordpress.org/extend/plugins/w3-total-cache/

Kurulumu:
1- Eklentiyi plugins klasorumuze atıp admin panelimizde aktifleştiriyoruz.
2- wp-content ve .htaccess dosyalarına 777 chmod ayarını veriyoruz.

Ayarları:
W3TC - General Settings
Page Cache: Enabled ('Enable' işaretli), Disk (enhanced) Minify: Enabled ('Enable' işaretli), Disk Database Cache: Disabled ('Enable' işaretli değil!) Object Cache: Disabled ('Enable' işaretli değil!) Content Delivery Network: Disabled ('Enable' işaretli değil!) (* Browser Cache: Enabled ('Enable' işaretli)
W3TC - Page Cache Settings

Page Cache Settings - General

Enable (işaretli) - Don't cache pages for logged in users
Enable (işaretli) - Cache home page
Enable (işaretli) - Cache feeds
Disable (işaretli değil!) - Cache URIs with query string variables
Disable (işaretli değil!) - Cache 404 (not found) pages

Page Cache Settings - Advanced

Dokunmayın!

Page Cache Settings - Cache Preload

Enable (işaretli) - Automatically prime the page cache Update internal - 907 Pages per interval: 7 (ihtiyaca gore artabilir/azalabilir) Sitemap URL: Your blogs sitemap.xml URL, Ornek: http://example.com/sitemap.xml
W3TC - Minify Settings


Minify Settings - Cascading Style Sheets

Enable: Enable (işaretli) Disable: Combine only (işaretli değil!) Enable: Comment Removal (işaretli) Enable: Line break removal (işaretli)



Minify Settings - Advanced

Update external files every: 216000 seconds Garbage collection interval: 216000 seconds
Minify Settings - JavaScript

Enabled: Enable (işaretli) Disabled: Combine only after Disabled: Combine only after Disabled: Combine only before Enabled: Comment removal Enabled: Line break removal




Minify Settings - General

Enable: Rewrite URL structure (işaretli) Enable: Automatically upload mofified files (işaretli) Minify error notification: Enable this to get error notification if something goes wrong.




Minify Settings - HTML

Enable: Enable (işaretli)
Disable: Don't minify feed (işaretli)
Enable: Inline CSS minification (işaretli)
Enable: Inline JS minification (işaretli)
Enable: Line break removal (işaretli)

W3TC - Browser Cache


Browser Cache - General / Default

Enable (işaretli): Set expires header
Enable (işaretli): Set cache control header
Disable (işaretli değil!): Set entity tag (eTag)
Enable (işaretli): Set W3 Total Cache header
Enable (işaretli): Enable HTTP (gzip) compression
Disable (işaretli değil!): Do not process 404 errors
Save changes.

Browser Cache - Cascading Style Sheets & JavaScript

(default = OK, no changes)

Enable (işaretli): Set expires header
Expires header lifetime: 31536000 seconds
Enable (işaretli): Set cache control header
Cache Control Policy: cache with validation
Disable (işaretli değil!): Set entity tag (eTag)
Enable (işaretli): Set W3 Total Cache header
Enable (işaretli): Enable HTTP (gzip) compression

Browser Cache - HTML

(default = OK, no changes)

Enable (işaretli): Set expires header
Expires header lifetime: 3600 seconds
Enable (işaretli): Set cache control header
Cache Control Policy: cache with validation
Disable (işaretli değil!): Set entity tag (eTag)
Enable (işaretli): Set W3 Total Cache header
Enable (işaretli): Enable HTTP (gzip) compression

Browser Cache - Media & Other Files

(default = OK, no changes)

Enable (işaretli): Set expires header
Expires header lifetime: 31536000 seconds
Enable (işaretli): Set cache control header
Cache Control Policy: cache with validation
Disable (işaretli değil!): Set entity tag (eTag)
Enable (işaretli): Set W3 Total Cache header
Enable (işaretli): Enable HTTP (gzip) compression


Not: Diğer kısımlara dokunmayın ve sırası ile yukarıda uyarı kısmında cıkan butonlara tıklayın.

'Disable' butonu preview icin

'Empty Page Cache' page cache icin

'Empty Minify Cache'

Not: chmod ayarlarınızı bu işlemleri yaptıktan sonra eski haline getiriniz.

Yararlanılan kaynak ve detaylı bilgi: http://zemalf.com/1443/w3-total-cache/