نمایش نتایج: از شماره 1 تا 1 , از مجموع 1

موضوع: آموزش کانفیگ و تنظیم W3 Total cache در وردپرس

  1. #1
    موسس و مدیر
    نمی‌دانم در کدامین کوچه جستجویت کنم ؟ آسوده بخواب مادر بیمارم
    تاریخ عضویت
    Feb 2010
    محل سکونت
    13 78 57
    نوشته ها
    13,577
    تشکر تشکر کرده 
    15,753
    تشکر تشکر شده 
    17,227
    تشکر شده در
    4,905 پست
    حالت من : Khoonsard
    قدرت امتیاز دهی
    24982
    Array

    پیش فرض آموزش کانفیگ و تنظیم W3 Total cache در وردپرس

    1.) First of all install W3 Total Cache and activate it.
    2.) Now after activation deactivate the Preview mode. To deactivate it , just click “Performance” on the left side of your WordPress dashboard and click “disable” button on the Preview section.
    Now we will do the rest of the process step wise.
    General Settings

    • Enable Page Cache, use “Disk : Enhanced”. If it’s showing up in your options then you can also select Opcode : Alternative PHP cache as it’s the best.
    • Enable Minify, set it to “manual”. Use “Disk”. If it’s showing up then you can also select Opcode : Alternative PHP cache as it’s the best.
    • Enable Database Caching. Use : “Disk”. If your wp-config is not writable due to some security plugin then set it to writable for optimal working of Database Cache.
    • Enable Object Caching. Use : “Disk”. It’s great for sites with heavy traffic.
    • Enable Browser Cache. It helps in leveraging browser caching.
    • Enable Verify rewrite rules, and if you have a Google Page speed API, then it’s your choice to enable Dashboard Widget.

    Optionally you can enable “Optimize disk enhanced page and minify disk caching for NFS“. It helps on some shared hosting setups.
    Advanced settings

    W3 Total Cache settings For Page Cache

    • Enable Cache front page.
    • Enable Cache feeds: site, categories, tags, comments.
    • Enable Cache SSL (https) requests.
    • Enable Cache requests only for www.yoursitename.com host name.
    • Enable Don’t cache pages for logged in users.

    For Cache Preload

    • Enable Automatically prime the page cache. Set update interval as 907 seconds or something close. Select number of pages 15 (increase or decrease depending on hosting).
    • Enter your sitemap URL. And enable Prime post cache on publish.

    For Advanced

    • Set Maximum lifetime of cache objects: 180060 seconds.
    • Set Garbage collection interval: 3600 seconds.

    W3 Total cache settings for Browser cache

    • Enable set Last-Modified header, set expires header, set cache control header, set W3 Total Cache header and enable HTTP (gzip) compression.
    • Set all the cache control policies to : Cache with Max-age.

    For CSS & JS

    • Set expires header lifetime : 31536000 seconds (over 1 year).
    • Enable set Last-Modified header, set expires header, set cache control header, set W3 Total Cache header and enable HTTP (gzip) compression.

    For HTML & XML

    • Set expires header lifetime : 7200 seconds.
    • Enable set Last-Modified header, set expires header, set cache control header, set W3 Total Cache header and enable HTTP (gzip) compression.

    For Media and other files

    • Set expires header lifetime : 31536000 seconds.
    • Enable set Last-Modified header, set expires header, set cache control header, set W3 Total Cache header and enable HTTP (gzip) compression.

    W3 Total Cache settings for Minify.

    • Enable rewrite URL structure and disable minify for logged in users. Set error notification to Admin notification.

    For HTML & XML

    • Tick on enable, inline CSS minification, inline JS minification and line break removal.

    For CSS

    • Tick enable, preserved comment removal and line break removal. Now go to your website in some other browser and right click and view source. Find the CSS files, and add their urls one by one in the CSS minification box. Do this to see whether something breaks the layout on minification or not.

    For Advanced

    • Update external files every : 216000 seconds and same for garbage collection.

    For JS
    This is the most difficult part of setting up W3 total cache settings. It requires some trial and error. Do it if the above steps were not enough.

    • Tick on enable, preserved comment removal and line break removal. Now got to the source of your site as before and find only those js files which are hosted on your website. Now add their urls one by one and check every time whether something is breaking your site or not.
    • NOTE : Customscript.js and the themes js files like themename.js should not be minified as mostly they are the ones which cause errors.

    W3 Total Cache settings for User agent groups.

    Just enable it and don’t change anything.
    NOTE : If any setting is not there in this guide then leave it to the default value.
    Checking the cache

    1.) Open any other browser and clear its cache and then open your homepage URL. Now right click and click on “View Page Source” and at the bottom, it should look like the screenshot below
    2.) Go to tools.pingdom and check your site load time. If everything is working well. You can expect results like below.

    If the Optimal Settings do not work for you. Follow these steps :
    1.) You can try WP-Super cache. And learn to customize it here. Using it along with DB-Cache reloaded fix will give you nice results. But not better.
    2.) Disable Gzip compression and see if it works well.
    3.) You can comment below so that I can help you in fixing errors.

    If you have any problem in the above guide or have any doubts, then do comment. I will be more than happy to help. icon biggrinpagespeedceg3F8dN bDO
    Genuine views are also welcome.



    زندگی در بردگی شرمندگی است * معنی آزاد بودن زندگی است
    سر که خم گردد به پای دیگران * بر تن مردان بود بار گران




  2. کاربر مقابل از Mohamad عزیز به خاطر این پست مفید تشکر کرده است:


علاقه مندی ها (بوک مارک ها)

علاقه مندی ها (بوک مارک ها)

مجوز های ارسال و ویرایش

  • شما نمیتوانید موضوع جدیدی ارسال کنید
  • شما امکان ارسال پاسخ را ندارید
  • شما نمیتوانید فایل پیوست در پست خود ضمیمه کنید
  • شما نمیتوانید پست های خود را ویرایش کنید
  •  

http://www.worldup.ir/