Sponsor:

Server and Web Integrator
Link:
Kloxo-MR logo
6.5.0 or 7.0.0
Click for "How to install"
Donation/Sponsorship:
Kloxo-MR is open-source.
Donate and or Sponsorship always welcome.
Click to:
Click Here
Please login or register. 2017-11-07, 23:17:12

Author Topic: tampilan web berantakan setelah aktifkan microcache  (Read 2823 times)

0 Members and 1 Guest are viewing this topic.

Offline menyo

  • Senior Member
  • *
  • Posts: 156
  • Karma: +0/-0
    • View Profile
Pak tolong bantuannya, coba aktifkan microcache di 6.5 dan berhasil
tapi saya lihat kok tampilan web dibeberapa client yang saya kunjungi berantakan
Ada 1 web saya yang tidak berantakan
kira2 ada apa ya pak?
di folder /home/nginx/conf/globals
apa _custom_.php-fpm.conf dan _custom_.proxy.conf harus diaktifkan semua?
saya pikir karena cache nya, tapi kok coba lihat di webproxy sama juga berantakan
kira2 apa ya pak solusinya?
apa ada pengaruh karena microcache?
thanks pak.

Offline menyo

  • Senior Member
  • *
  • Posts: 156
  • Karma: +0/-0
    • View Profile
Re: tampilan web berantakan setelah aktifkan microcache
« Reply #1 on: 2014-11-10, 08:51:30 »
http://img.prntscr.com/img?url=http://i.imgur.com/LUXSLNg.png
Gtau nih pak, kloxo MR di bagian buat ngontrol client juga jadi berantakan.
aneh ya
hmm

kepaksa saya non aktifkan microcache dan semua client kembali normal
hanya tampilan koxo mr tersebut yang masih aneh
agak berantakan sedikit
« Last Edit: 2014-11-10, 08:53:20 by menyo »

Offline menyo

  • Senior Member
  • *
  • Posts: 156
  • Karma: +0/-0
    • View Profile
Re: tampilan web berantakan setelah aktifkan microcache
« Reply #2 on: 2014-11-14, 09:37:02 »
Sepertnya saya tahu jawabannya
namun tidak tahu pemecahannya hehehe

Penyebab dari tampilan yang berantakan karena pagespeed tidak bisa akur sama microcache. Itu analisa saya...

di server saya menggunakan pagespeed modul, namun yang tidak mengaktifkan microcache, tidak mengalami masalah
namun server yang mengaktifkan microcache website client ada yang berantakan. Saya tidak tahu mengapa begini.

Mungkin pak mustafa tahu jawabannya.

Saya sudah coba di kloxo MR 6.5 dan 7 hasilnya sama, web client berantakan, memang tidak semua, namun jumlahnya cukup banyak.

hal lain yang membuat saya mengatakan microcache dan pagespeed sepertinya gk akur adalah
ketika saya hapus cache di pagespeed, langsung normal tampilan. padahal web diserver lain oke2 saja tanpa microcache.


Mohon pencerahannya ya pak mustafa
terimakasih,
salam
« Last Edit: 2014-11-14, 09:38:56 by menyo »

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,381
  • Karma: +112/-9
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: tampilan web berantakan setelah aktifkan microcache
« Reply #3 on: 2014-11-14, 11:29:21 »
Yang saya temukan masalah adalah pakai cache plugins in wordpress yang agresif misalnya hyper-cache. Pakai yang 'konservatif' tidak menimbulkan masalah pada tampilan ketika mengkombinasikan php-pecl-apc, mod-pagespeed dan microcache (pada hiawatha).
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline menyo

  • Senior Member
  • *
  • Posts: 156
  • Karma: +0/-0
    • View Profile
Re: tampilan web berantakan setelah aktifkan microcache
« Reply #4 on: 2014-11-14, 16:01:41 »
Ya itulah yang buat bingung pak
saya sendiri menggunakan nginx proxy dg microcache
Padahal tidak setting aneh2

Website client sendri justru tidak pakai plugin cache pak

Offline menyo

  • Senior Member
  • *
  • Posts: 156
  • Karma: +0/-0
    • View Profile
Re: tampilan web berantakan setelah aktifkan microcache
« Reply #5 on: 2014-11-15, 06:35:21 »
gak berhasil ya pak saya coba setting2
tadi coba tambah timeout di proxy.conf juga gak ngaruh kayanya. Ane pikir ada hubungannya sama itu hehe

apa mungkin ddalam kasus saya ada hubungannya dengan ini ya pak, ini didalam pagespeed.conf. Siapa tahu pak mustafa tahu artinya. saya gak ngerti setting nya. Intinya ada hubungannya dengan varnish atau penggunaan proxy.

   # If you use downstream caches such as varnish or proxy_cache for caching
    # HTML, you can configure pagespeed to work with these caches correctly
    # using the following directives. Note that the values for
    # ModPagespeedDownstreamCachePurgeLocationPrefix and
    # ModPagespeedDownstreamCacheRebeaconingKey are deliberately left empty here
    # in order to force the webmaster to choose appropriate value for these.
    #
    # ModPagespeedDownstreamCachePurgeLocationPrefix
    # ModPagespeedDownstreamCachePurgeMethod PURGE
    # ModPagespeedDownstreamCacheRewrittenPercentageThreshold 95
    # ModPagespeedDownstreamCacheRebeaconingKey
« Last Edit: 2014-11-15, 06:48:21 by menyo »

Offline menyo

  • Senior Member
  • *
  • Posts: 156
  • Karma: +0/-0
    • View Profile
Re: tampilan web berantakan setelah aktifkan microcache
« Reply #6 on: 2014-11-15, 06:59:39 »
Saya juga berpikir bahwa ada yang bentrok antara cache pagespeed dan microcache untuk file js atau mungkincss dalam kasus saya.
Landasan pernyataan ini didasarkan setelah hasil uji coba saya memblokir file JS dan CSS dan hasilnya web tersebut normal2 saja. tidak berantakan dan kembali semula.

Nah saya belum tahu apakah kerusakan ini lantara crash di bagian .js atau file .css makanya saya alihkan file tersebut agar tidak di rewrite pagespeed.

Intinya dari hasil ujicoba saya, hanya boleh salah satu saja yang boleh melakukan cache file js/css. entah pagespeed atau microcache. (dalam kasus saya)

Nah pertanyaannya bisakah dibuat agar microcache (nginx proxy) saja yang tidak men-cache .js dan .css?
saya lampirkan SS custom.proxy.conf apakah benar yang saya modifikasi nanti.

Untuk performa menurut bapak apakah masih signifikan jika microcache tidak memproses file css dan js? mohon masukannya ya pak

salam

Offline menyo

  • Senior Member
  • *
  • Posts: 156
  • Karma: +0/-0
    • View Profile
Re: tampilan web berantakan setelah aktifkan microcache
« Reply #7 on: 2014-11-15, 07:20:38 »
Update lagi pak.
sepertinya saya tahu kenapa

ini saya cek di gt metrix
The following requests are returning 404/410 responses. Either fix the broken links, or remove the references to the non-existent resources.
css hasil rewrite gak ketemu atau 404

Jadi kalau salah satu tidak aktf, baik microcache atau pagespeed, semua berjalan normal
Nah kira2 saya harus gimana ya pak?

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,381
  • Karma: +112/-9
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: tampilan web berantakan setelah aktifkan microcache
« Reply #8 on: 2014-11-15, 16:04:19 »
Untuk mendisable microcache, lakukan:

1. Pada nginx stand-alone, copy php-fpm_standard.conf dan php-fpm_wildcards.conf ke custom.php-fpm_standard.conf dan custom.php-fpm_wildcards.conf di /opt/configs/nginx/conf/globals. Kemudian ubah:
Code: [Select]
    ### MR -- just enough remove # below for enable nginx cache
    fastcgi_cache fcache;
    #fastcgi_cache_valid 200 1h;
    #fastcgi_cache_valid 301 1h;
    #fastcgi_cache_valid 302 1h;
    #fastcgi_cache_valid any 1m;
    ## for microcache
    fastcgi_cache_valid 200 10s;
    fastcgi_cache_use_stale updating;
    fastcgi_max_temp_file_size 1M;
ke:
Code: [Select]
    ### MR -- just enough remove # below for enable nginx cache
    #fastcgi_cache fcache;
    #fastcgi_cache_valid 200 1h;
    #fastcgi_cache_valid 301 1h;
    #fastcgi_cache_valid 302 1h;
    #fastcgi_cache_valid any 1m;
    ## for microcache
    #fastcgi_cache_valid 200 10s;
    #fastcgi_cache_use_stale updating;
    #fastcgi_max_temp_file_size 1M;

2. Pada nginx stand-alone, copy proxy_standard.conf dan proxy_wildcards.conf ke custom.proxy_standard.conf dan custom.proxy_wildcards.conf di /opt/configs/nginx/conf/globals. Kemudian ubah:
Code: [Select]
        ### MR -- just enough remove # below for enable cache
        proxy_cache pcache;
        #proxy_cache_valid 10m;
        #proxy_cache_valid 404 1m;
        ## for microcache
        proxy_cache_valid 200 10s;
        proxy_cache_use_stale updating;
        proxy_max_temp_file_size 1M;
ke:
Code: [Select]
        ### MR -- just enough remove # below for enable cache
        #proxy_cache pcache;
        #proxy_cache_valid 10m;
        #proxy_cache_valid 404 1m;
        ## for microcache
        #proxy_cache_valid 200 10s;
        #proxy_cache_use_stale updating;
        #proxy_max_temp_file_size 1M;

3. Setelah itu, jalankan 'sh /script/fixweb; sh /script/restart-web -y'.
« Last Edit: 2014-11-15, 16:15:15 by MRatWork »
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline menyo

  • Senior Member
  • *
  • Posts: 156
  • Karma: +0/-0
    • View Profile
Re: tampilan web berantakan setelah aktifkan microcache
« Reply #9 on: 2014-11-15, 23:57:30 »
wah mentok pak. kayanya malah pagespeed saya yang bermasalah apa ya.

saya dah coba microcache sayang juga kalau tidak aktif

Tapi makasih atas petunjuknya ya pak. semoga bermanfaat juga untuk user lain dan bisa menambah informasi di forum tercinta kita ini.


saya mau tanya beberapa hal untuk optimasi pagespeed langsung lewat webserver pak. saya buat new thread saja pak. cos beda masalah. mudah2an bisa menambah wawasan dan informasi pengunjung forum bapak ini.
terimakasih pak.
salam.

 


Top 10 Social Networking:    Facebook    Twitter    LinkedIn    Pinterest    Google Plus    Tumblr    Instagram    VK    Flickr    Vine
Click Here

Page created in 0.037 seconds with 17 queries.

web stats analysis
 
Mirror created by MasterkinG32.CoM