Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6222965
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T08:24:27+00:00 2026-05-24T08:24:27+00:00

CakePHP offers support for APC, XCache and Memcache in addition to its default caching

  • 0

CakePHP offers support for APC, XCache and Memcache in addition to its default caching engine. Having had some problems with my application sporadically caching broken pages for no known reason, I’ve decided to try another engine to see if that makes a difference.

XCache and Memcache both seem as though they might take a little bit more setup, but APC appears to be literally a case of changing one line in the core.php. My question is, where can I find information about why I should choose APC over the default engine? What are the pros and cons? It can’t really be a case of “just try them both and see if one feels better than the other” (can it?), but a basic snoop around hasn’t revealed a simple breakdown of the differing merits of cache engines in Cake.

Can anyone explain the mysterious workings of cache engines in Cake to me? Or point me to a resource that does? Bonus points if XCache and Memcache are also compared, because they might be my next port of call…

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T08:24:29+00:00Added an answer on May 24, 2026 at 8:24 am

    Files are on disk :

    • Not quite fast ; and concurrent access are not great at all, if several processes try to read/write at the same time
    • Local to one server (if you have several servers, you’ll have to store the files on each one of them — NFS being slow)
    • But you have a lot of space

    APC is in memory :

    • Really fast
    • But you have less space
    • And it’s local to each server too

    memcached is in memory, on a network cluster :

    • quite fast (a bit less than APC ; but still pretty fast)
    • Shared between all your servers : each item has to be cached only once, even if you have several webservers.
    • You can have several servers in your memcached cluster (which means virtually no limit in the size of the cache)
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Does CakePHP have support for APC, XCache and others?
Cakephp is giving me some problems as I have set as below (I have
CakePHP Newbie :) I am having trouble accessing another controller and passing that data
CakePHP problems by not getting the _schema my model in cakephp: <?php App::uses('AppModel', 'Model');
Using CakePHP, I am finding that I'm duplicating some code between controller actions. I
Using CakePHP 1.3 I'm trying to save some data to a MySQL database. The
In CakePHP 2 I use @ ichikaway 's MongoDB plugin like this: public $default
CakePHP has an annoying habit of having very deep, multidimensional arrays when pulling data
In CakePHP we can use $this->Auth->allow('someMethod'); to make a page viewable without having to
I've got a CAkePHP 1.2 site. I've got three related Models/tables: A Comment has

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.