Tags:

มีใครเป็นบ้างมั้ยครับ บัคหรือนโยบาย

When not logged in cannot see some comments. It is a bug or blognone’s policy?

Get latest news from Blognone
By: rattananen
AndroidWindows
on 7 June 2023 - 15:22 #1286434

policy ครับแต่ proxy's policy นะ

By: PH41
ContributorAndroidUbuntuWindows
on 7 June 2023 - 19:05 #1286443 Reply to:1286434
PH41's picture

หมายถึงยังไงหรอครับ?

By: rattananen
AndroidWindows
on 7 June 2023 - 22:01 #1286463 Reply to:1286443

เว็บนี้ใช้ cloudflare เป็น proxy ครับ
น่าจะตั้ง rule (policy) บางอย่าง
ทำให้เวลาไม่ login จะเอา page ที่ cloudflare cache ไว้ response กลับแทน

ถ้าไม่ใช้ก็อาจจะป็น cache policy ของ CMS เอง

By: PH41
ContributorAndroidUbuntuWindows
on 11 June 2023 - 00:12 #1286748 Reply to:1286434
PH41's picture

แปลว่าถ้าจะให้ดี เวลามี comment เกิดใหม่ ควรยิงไป revalidate url ที่ cloudflare สินะ

By: N Pack on 8 June 2023 - 16:57 #1286547
N Pack's picture

ผมเห็นปกตินะครับ
ผมแชร์ไป google go กดอ่านแล้วฟังเอา
แต่ก็ยังเห็นคอมเม้นปกติ (ผมไม่ได้ login google go )

By: adente
ContributorSUSESymbianWindows
on 9 June 2023 - 11:54 #1286643
adente's picture

เป็นเหมือนกันครับ เห็นมีคอมเมน 8 อัน
แต่ล็อกอินเข้ามาจะอ่าน คอมเมนมันเป็น 14 อันแทน อะไรแบบนี้

By: whitebigbird
Contributor
on 24 June 2023 - 20:33 #1288003
whitebigbird's picture

บล็อกนันจะ cache ทุกหน้าเป็นระยะ ถ้าคนที่ไม่ได้ล็อกอินจะได้ดู cache เพื่อประหยัดพลังงานประมวลผล DB / web server

ส่วนคนที่ล็อกอินก็ได้ดูทุกหน้าเป็นแบบ dynamic

หมายเหตุ cache คือให้ web server render หน้าให้จบแล้วเก็บเอาไว้เป็น static (static แปลว่าถ้า cache ยังไม่หมดอายุ มันก็จะเหมือนเดิมแบบนั้น มี 10 เม้นตอน cache ก็จะเห็นแค่ 10 เม้น ต่อให้เบื้องหลังมีเพิ่มเป็น 200 เม้นก็จะเห็นจาก cache แค่ 10 เม้นอยู่ดี)