What is Memcached?

Memcached is a server side caching system. It is a high-performance, distributed memory object caching system. Its primary purpose is to speed up database-driven websites and applications.

A caching system can dramatically improve the performance of your website. Users of Memcached include WordPress, Wikipedia, Twitter, Youtube, and Flickr, among others.

How does Memcached work?
Memcached stores data and objects in RAM (memory) to reduce the number of times an external data source (such as a database or API) must be read. It has the ability to store SQL queries, that way the next time the query is run, it can return the result from memory.

Difference between Memcached and other caching systems
Other systems allow you direct access to the cached information. Memcached caches data and not parsed scripts. This makes Memcached perfect to optimize MySQL. It is better suited for use with large caches that change.

What is Memcache?
Memcache is the PHP extension for Memcached. The two must be used together to function properly. Just having Memcached on the server will not improve your site's performance. You must modify your coding to use it correctly.

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How to set the PHP maximum upload file size

To change maximum upload file size, you need to change the upload_max_filesize and post_max_size...

How to redirect http to https using .htaccess

Using the following code in your .htaccess file you can automatically redirect visitors to the...

How to enable Server Side Includes (SSI) using .htaccess

If you are using Server Side Includes SSI in your HTML files and they are not working, you most...

How to set the PHP error message settings

Error messages and the display_errors directive By default, PHP displays error messages in a...

How to secure your .htaccess file

For security reasons, the .htaccess file contents should not be visible to the public. To do...