I don't have concrete examples for variable cache, I am newbie to php
cache.

But combination of apc and memcache is the knowledge I gain from a
facebook presentation.

it says when you have "global" data which needs to be shared by
multiple servers distributed worldwide, memcache is used for this
purpose; on the other side, if the data is only used by local server
(I don't know exactly what should be cached in local server though),
apc could be employed.

On Dec 6, 8:11 pm, "Ma'moon" <phpir...@gmail.com> wrote:
> I am curious as on why you would need to "cache variables" using APC or any
> other caching engine, can you provide a case for this usage?
>
>
>
>
>
>
>
> On Mon, Dec 6, 2010 at 7:58 AM, pang <y...@tagroup.se> wrote:
> > Ok,now I know opcode is enabled automatically when apc is on.
>
> > I guess why cakephp has a apc section is because:  apc also provide
> > the ability to cache variables, so if  we need to cache variable by
> > apc, it requires code changes.
>
> > The question now is :  if I want to separate variable caching, like
> > what facebook does:  cache local variables in apc, while caching
> > database query by memcached. how could this be done as both apc and
> > memcached need to be configured and class "Cache" is the only handler
> > for cakephp cache?
>
> > If I want to use both apc and memcache, does that mean I have to
> > create a extra  Cache handler for apc and assign the default handler
> > "Cache" for memcached, or vise versa ??
>
> > On Dec 6, 11:55 am, "Ma'moon" <phpir...@gmail.com> wrote:
> > > I am not really sure why we do have an APC section in core.php, APC
> > should
> > > run automatically and it doesn't really need any code changes to have it
> > > running, the other caching engines need to be configured in core.php,
> > AFAIK!
>
> > > On Mon, Dec 6, 2010 at 5:51 AM, pang <y...@tagroup.se> wrote:
> > > > you mean I don't even have to enable apc in core config file ??
>
> > > > On Dec 3, 7:32 pm, Miles J <mileswjohn...@gmail.com> wrote:
> > > > > Install APC and memcache. APC will run automatically and cache your
> > > > > opcode.
>
> > > > > Use memcache on the CakePHP side to cache query data.
>
> > > > > On Dec 3, 6:04 am, "Ma'moon" <phpir...@gmail.com> wrote:
>
> > > > > > All configuration items that you need to edit takes place in
> > > > "core.php",
> > > > > > right there you will have the ability to enable, disable, and/or
> > > > configure
> > > > > > your caching engines/levels
>
> > > > > > On Fri, Dec 3, 2010 at 3:07 PM, pang <y...@tagroup.se> wrote:
> > > > > > > Thank you for your answer. I know that apc and memcache has
> > different
> > > > > > > usage, I can make them working respectively in Cake.
>
> > > > > > > But I don't know how to configure to make them working together.
> > Do
> > > > > > > you know how to do it?
>
> > > > > > > On Dec 3, 1:14 pm, "Ma'moon" <phpir...@gmail.com> wrote:
> > > > > > > > APC performs (byte code caching or intermediate code) which
> > means
> > > > that it
> > > > > > > > caches the binary form of your PHP script and once this script
> > is
> > > > being
> > > > > > > > called, the cached version of the script is the one that will
> > be
> > > > > > > executed,
> > > > > > > > this will save a lot of performance and server resources, on
> > the
> > > > other
> > > > > > > hand,
> > > > > > > > memcached is being used to cache objects of several forms, like
> > > > caching
> > > > > > > the
> > > > > > > > results of a database query "a model operation in CakePHP's
> > case",
> > > > an
> > > > > > > array,
> > > > > > > > or someother forms of objects, you can use both of them for
> > your
> > > > > > > application
> > > > > > > > caching, each for its own task, take a look here to configure
> > the
> > > > desired
> > > > > > > > cache engines that you would like to use in your CakePHP
> > > > > > > applicationhttp://book.cakephp.org/view/156/Caching
>
> > > > > > > > On Fri, Dec 3, 2010 at 12:16 PM, pang <y...@tagroup.se> wrote:
> > > > > > > > > CakePHP offer both APC and Memcached cache engine for cache
> > > > purpose,
> > > > > > > > > but each of them has different preferred usage,
> > > > > > > > > I am wondering is it possible to config Cake to work with
> > both of
> > > > > > > > > them? and how can It be achieved?
>
> > > > > > > > > Check out the new CakePHP Questions
> > sitehttp://cakeqs.organdhelp
> > > > > > > others
> > > > > > > > > with their CakePHP related questions.
>
> > > > > > > > > You received this message because you are subscribed to the
> > > > Google
> > > > > > > Groups
> > > > > > > > > "CakePHP" group.
> > > > > > > > > To post to this group, send email to
> > cake-php@googlegroups.com
> > > > > > > > > To unsubscribe from this group, send email to
> > > > > > > > > cake-php+unsubscr...@googlegroups.com<cake-php%2bunsubscr...@googlegroups.c
> > > > > > > > >  om>
> > <cake-php%2bunsubscr...@googlegroups.c om>
> > > > <cake-php%2bunsubscr...@googlegroups.c om>
> > > > > > > <cake-php%2bunsubscr...@googlegroups.c om>For more options,
> > visit
> > > > this
> > > > > > > group at
> > > > > > > > >http://groups.google.com/group/cake-php?hl=en
>
> > > > > > > Check out the new CakePHP Questions sitehttp://cakeqs.organdhelp
> > > > others
> > > > > > > with their CakePHP related questions.
>
> > > > > > > You received this message because you are subscribed to the
> > Google
> > > > Groups
> > > > > > > "CakePHP" group.
> > > > > > > To post to this group, send email to cake-php@googlegroups.com
> > > > > > > To unsubscribe from this group, send email to
> > > > > > > cake-php+unsubscr...@googlegroups.com<cake-php%2bunsubscr...@googlegroups.c
> > > > > > >  om>
> > <cake-php%2bunsubscr...@googlegroups.c om>
> > > > <cake-php%2bunsubscr...@googlegroups.c om>For more options, visit this
> > > > group at
> > > > > > >http://groups.google.com/group/cake-php?hl=en
>
> > > > Check out the new CakePHP Questions sitehttp://cakeqs.organdhelp
> > others
> > > > with their CakePHP related questions.
>
> > > > You received this message because you are subscribed to the Google
> > Groups
> > > > "CakePHP" group.
> > > > To post to this group, send email to cake-php@googlegroups.com
> > > > To unsubscribe from this group, send email to
> > > > cake-php+unsubscr...@googlegroups.com<cake-php%2bunsubscr...@googlegroups.c
> > > >  om>
> > <cake-php%2bunsubscr...@googlegroups.c om>For more options, visit this
> > group at
> > > >http://groups.google.com/group/cake-php?hl=en
>
> > Check out the new CakePHP Questions sitehttp://cakeqs.organd help others
> > with their CakePHP related questions.
>
> > You received this message because you are subscribed to the Google Groups
> > "CakePHP" group.
> > To post to this group, send email to cake-php@googlegroups.com
> > To unsubscribe from this group, send email to
> > cake-php+unsubscr...@googlegroups.com<cake-php%2bunsubscr...@googlegroups.c 
> > om>For more options, visit this group at
> >http://groups.google.com/group/cake-php?hl=en

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to