MyPage is a personalized page based on your interests.The page is customized to help you to find content that matters you the most.


I'm not curious

Cache (PHP Accelerators/Cachers)

Published on 23 February 13
309
0
0
  1. Caching to speed up dynamically generated sites.
  2. Itâs reduce the traffic
  3. One way of caching,It is simply storing the results of your database queries in files. Opening a file and unserializing is often a lot faster than doing an expensive SELECT query with multiple joins.
  4. If you have a web application which has to live on different webservers (loadbalancing), you have to use memcache for distributed caching. If not, just stick to APC and its cache.

1.File cache:

It writes flat files to the filesystem.

it is the slowest cache engine , becz it stores everything in disk (server)

However, since disk storage is often quite cheap, storing large objects

2.Memcache:

Memcache/MemcacheD is not an Opcode Cacher. It is a distributed memory caching system. It does not improve the speed/performance of your PHP code. It can be used to store data only.

Memcache is better because it uses memory (RAM) to cache things instead of the file system.

3. APC:
APC, EAccelerator, XCache and the others are non distributed, meaning you can only store data
on the local web-server. However all of these are opcode cachers and can improve the
performance.

APC - The fastest method possible. But it stores everything in RAM







  1. Caching to speed up dynamically generated sites.
  2. Itâs reduce the traffic
  3. One way of caching,It is simply storing the results of your database queries in files. Opening a file and unserializing is often a lot faster than doing an expensive SELECT query with multiple joins.
  4. If you have a web application which has to live on different webservers (loadbalancing), you have to use memcache for distributed caching. If not, just stick to APC and its cache.

1.File cache:
It writes flat files to the filesystem.

it is the slowest cache engine , becz it stores everything in disk (server)

However, since disk storage is often quite cheap, storing large objects

2.Memcache:
Memcache/MemcacheD is not an Opcode Cacher. It is a distributed memory caching system. It does not improve the speed/performance of your PHP code. It can be used to store data only.

Memcache is better because it uses memory (RAM) to cache things instead of the file system.

3. APC:
APC, EAccelerator, XCache and the others are non distributed, meaning you can only store data
on the local web-server. However all of these are opcode cachers and can improve the
performance. APC - The fastest method possible. But it stores everything in RAM



This blog is listed under Open Source , Development & Implementations and Data & Information Management Community

Related Posts:

PHP 5

 

Cache

 
Post a Comment

Please notify me the replies via email.

Important:
  • We hope the conversations that take place on MyTechLogy.com will be constructive and thought-provoking.
  • To ensure the quality of the discussion, our moderators may review/edit the comments for clarity and relevance.
  • Comments that are promotional, mean-spirited, or off-topic may be deleted per the moderators' judgment.
You may also be interested in
Awards & Accolades for MyTechLogy
Winner of
REDHERRING
Top 100 Asia
Finalist at SiTF Awards 2014 under the category Best Social & Community Product
Finalist at HR Vendor of the Year 2015 Awards under the category Best Learning Management System
Finalist at HR Vendor of the Year 2015 Awards under the category Best Talent Management Software
Hidden Image Url

Back to Top