LevelUp! Studio » cache https://blog.levelup.in.th Experience the new world. Fri, 26 May 2017 10:06:07 +0000 th hourly 1 http://wordpress.org/?v=3.8.1 PHP APC Cache https://blog.levelup.in.th/2009/05/24/php-apc-cache/ https://blog.levelup.in.th/2009/05/24/php-apc-cache/#comments Sun, 24 May 2009 03:33:30 +0000 http://blog.levelup.in.th/?p=21 โดยปกติแล้วตัว Native PHP มี flow การทำงานดังนี้

  1. Scanning and Lexing : ตรวจสอบ syntax error ต่างๆ
  2. Parsing : อ่านความหมายของแต่ละคำสั่ง
  3. Compliation : แปลงเป็น run code
  4. Execution

APC PHP มี flow ดังนี้

  1. APC Hook เช็ค Opcode Cache (hit/miss)
  2. Scaning and Lexing
  3. Parsing
  4. Compilation
  5. APC Hook – store opcode (เก็บเข้า cache)
  6. Execution

Installation

  • http://pecl.php.net
  • (Ubuntu) apt-get install php5-apc

ส่วน Memcache มีทุกๆ ภาษาอยู่แล้ว

]]>
https://blog.levelup.in.th/2009/05/24/php-apc-cache/feed/ 0