PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Tuesday, March 8, 2022

[FIXED] What should I use for caching?

 March 08, 2022     apc, memcached, php, yii     No comments   

Issue

I am developing an application using the Yii framework. Application will have a multiple server configuration. I read about Memcache and APC.

Can you tell me what works better with Yii between APC and Memcache?


Solution

Although both APC and Memcache are used for different purpose, you should use both. Since you have multiple servers, memcache will help in caching and maintaining user data state across servers and APC will help in speed up script execution time.

APC compiles the plain PHP code into machine code and saves it so in all future requests, compilation time can be saved. Here's the link which can give you some idea on how to use it with Yii - http://www.yiiframework.com/wiki/312/getting-the-most-out-of-apc-for-yii/



Answered By - CM.
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing