Ah sorry I forgot to mention,
I also add the same config on Config/core.php on my backend app, so it
should refer to the same cache
On Saturday, March 21, 2015 at 10:49:17 PM UTC+7, Ronald Layanto wrote:
>
> Hi all,
>
> Sorry if my post is kinda stupid
> I have an issue usi
Hi all,
Sorry if my post is kinda stupid
I have an issue using Memcached in CakePHP 2.6.3
Currently I develop a simple website in my laptop, which already installed
with Memcached
The Memcached already installed properly, I already checked using phpinfo
and there's no problem at all
I als
ok, solved it myself. The error was actually being generated on a PHP level
in from php-pecl-memcache.
Turns out this library is less capable than php-pecl-memcache*d*, so using
that rather. And now pooling is handled correctly.
sorry for the noise,
Michael
--
Like Us on FaceBook https://ww
Hi,
I noticed that Cakephp gives an error message if one of the servers in a
memcached pool is missing:
For example, two server in a pool. One is up, the other down, gives this
error, even though the one server in the pool is available.
*Notice* (8): MemcachePool::get() [http://php.net
It was a write permissions error on the files and a storage error in
Memcached. Oddly enough, I can no longer reproduce these. It must be a
server level problem. Thanks for your response and I will update if I
figure out what it was.
Ryan
On Thu, Aug 9, 2012 at 9:20 PM, Dr. Tarique Sani wrote
iguration of two load balanced web servers and two database servers
> (master/slave). We are using CakePHP 2.2.1 on NginX and PHP-FPM with PHP
> 5.4. We are noticing intermittent cache write failures despite having tried
> both file based caching and memcached. For file based caching, ev
tried
both file based caching and memcached. For file based caching, even with
permissions being 777 and the umask set to 777, a cache file cannot be
overwritten once it is written. On the memcached side, the store failures
follow the same pattern. Once it has been written, it cannot be overwritten
Hi,
i plan to implement data caching in my project,
please suggest me, which to use Memcached or Redis
(with simple comments)
thanks in advance
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org
memcached should have keys that expire, thus you wouldn't have to remove
it. read this http://api20.cakephp.org/class/memcache-engine
On Friday, March 2, 2012 3:14:58 AM UTC-6, Almog Koren wrote:
>
> I'm looking at adding Memcached to my application I understand there is
>
I'm looking at adding Memcached to my application I understand there is
already a built in option for this in CakePHP. I wanted to know if I'm
still required to build a caching layer were I link the cache to a key
that represents the data in the database. and when it comes time to
Yes, your configuration looks fine. I would not advise using memcache for
the _core_ cache configuration, it is better to use APC, although it will
still work fine and fast with memcache.
CakePHP does not cache find() calls, that is a task left for the developer.
--
Our newest site for the com
Thank you. Just to be sure... What I wrote here, is it the right way to set
up cakephp to use memcached for sessions?
Also if I set _core_ Cache to use memcached, is cakephp going to use
memcache to cache the ->find calls?
On Oct 6, 2011 8:41 PM, "José Lorenzo" wrote:
> The
The bug was fixed in lastest commit in cakephp repo. Thanks a lot for
reporting it.
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others
with their CakePHP related questions.
To un
I can confirm this bug, I'll keep you posted
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others
with their CakePHP related questions.
To unsubscribe from this group, send email to
That looks like a very odd error. What version of php are you using? can you
paste the complete core.php file in the cakephp bin?
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others
I tried to set up sessions with memchaced and I am getting an error (plus
sessions do not seem to work).
I read :
https://github.com/cakephp/docs/blob/master/en/development/sessions.rst
It does not talk of session on memcached in specific but maybe adding it to
the doc would be good ;-)
I tested
Thank you brother,
i'm starting with memcached and cake and is really useful!
On Aug 4, 9:19 am, Perry wrote:
> I've found the solution
> inhttp://www.pseudocoder.com/blog/8-ways-to-speed-up-cakephp-apps
>
> I need to add a '_cake_core_' cache con
it works fine. but when I
> switch to memcached, I found all the cake_core files, such as
> cake_core_file_map, can't be cached.
>
> I've deleted those files in app/tmp/cache/persistent and
> app/tmp/cache/models, and it does not appear again, which means cake must b
Hi all,
I've enabled file cache in core.php, and it works fine. but when I
switch to memcached, I found all the cake_core files, such as
cake_core_file_map, can't be cached.
I've deleted those files in app/tmp/cache/persistent and
app/tmp/cache/models, and it does not appe
> Hi Andy and thank for reply,
>
> The memcached expiration time is clear, everything which exceeds 30 days
> (in seconds 60*60*24*30 = 2592000) it is treated like an Unix time stamp.
>
> According to the memcached log I've got something like 'set
> app_cake_model_def
Hi Andy and thank for reply,
The memcached expiration time is clear, everything which exceeds 30 days (in
seconds 60*60*24*30 = 2592000) it is treated like an Unix time stamp.
According to the memcached log I've got something like 'set
app_cake_model_default_aros_acos 1 86313600 699&
couse, if I'll use the file
> cache probably it will be rewritten each and every time, I haven't test
> this.
> So far I don't know why that subtraction is there, why it is needed the
> differernce as a result if someone can illuminate me, please do.
does "duration&qu
an
On Wed, Jan 12, 2011 at 12:24 PM, Adrian Arnautu
wrote:
> Hi to all,
>
> I activated the Memcached default support with this config
> Cache::config('default', array(
> 'engine' => 'Memcache',
&g
Hi to all,
I activated the Memcached default support with this config
Cache::config('default', array(
'engine' => 'Memcache',
'duration'=> 9577829600,
'servers&
ection 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, whil
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 &q
as 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
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
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 t
h 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 performanc
ow how to do it?
>
> > > On Dec 3, 1:14 pm, "Ma'moon" 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
>
rm 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
e 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,
s (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,
&g
,
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 t
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 site http://cakeqs.org and help others with
Sep 21, 3:31 pm, Miles J wrote:
> -w keeps saying that memcache is doing a get before each set, so it
> keeps throwing a miss.
>
> On Sep 21, 3:05 pm, Andy Gale wrote:
>
> > On Tue, Sep 21, 2010 at 4:02 PM, j.blotus wrote:
> > > I recently set up memcached as well
-w keeps saying that memcache is doing a get before each set, so it
keeps throwing a miss.
On Sep 21, 3:05 pm, Andy Gale wrote:
> On Tue, Sep 21, 2010 at 4:02 PM, j.blotus wrote:
> > I recently set up memcached as well, it's too bad that it doesn't give
> > you a gre
On Tue, Sep 21, 2010 at 4:02 PM, j.blotus wrote:
> I recently set up memcached as well, it's too bad that it doesn't give
> you a great idea of how things are working behind the scenes.
Run memcached with the -vv option and it will tell you exactly what's going on.
--
>
> On Sep 21, 8:02 am, "j.blotus" wrote:
>
>
>
> > I recently set up memcached as well, it's too bad that it doesn't give
> > you a great idea of how things are working behind the scenes.
>
> > On Sep 21, 1:27 am, Miles J wrote:
>
&g
I still have not gotten this to work. Im thinking of just setting
default to file system cache and everything else to memcache.
On Sep 21, 8:02 am, "j.blotus" wrote:
> I recently set up memcached as well, it's too bad that it doesn't give
> you a great idea of how thi
I recently set up memcached as well, it's too bad that it doesn't give
you a great idea of how things are working behind the scenes.
On Sep 21, 1:27 am, Miles J wrote:
> I just installed memcache for one of my apps and attempted to
> configure Cake to use it. When I changed &qu
I just installed memcache for one of my apps and attempted to
configure Cake to use it. When I changed "default" from File to
Memcache, everything missed. I went from 0 to 300+ misses per request.
I tried both of the following configs with the same result.
Cache::config('default', array('engine' =
Hey! I really could get my info from Memcached with the monitoring-tool
created by Haron Yayli! Excellent tool!
Thanks :), Memcached was really working. The problem was that I was asking
somethimes for
app_cake_model_default_users<http://localhost/memcache.php?&op=4&s
Checkout memcached monitoring tool created by Harun Yayli -
http://livebookmark.net/journal/2008/05/21/memcachephp-stats-like-apcphp/
You'll have to change $MEMCACHE_SERVERS[] = 'mymemcache-server1:11211'
to use your server settings
On Jul 9, 10:05 pm, Hugo M wrote:
> I'
Cache an item, assuming the cache is working, turn memcached off, then
try to read it on the next request. That will tell you right away if
memcache is working.
On Jul 9, 7:05 pm, Hugo M wrote:
> I've configured memcached as caching system in CakePHP, how can I test it?
> Because I t
I've configured memcached as caching system in CakePHP, how can I test it?
Because I tried to get contents from the keys I put on the cache and the
telnet console returns nothing. But the cache seems to be working ok. I put
in the configuration prefix = '' and I search the keys in
Hello everyone,
I have a memcache which is set up like this in core.php:
Cache::config('default', array(
'engine' => 'Memcache',
'duration'=>86400,
'probability'=> 100,
'prefix' => Inflector::slug(APP_DIR) . '_',
' => false
)
);
But the File Engine is still being used for cacheing everything.
On Feb 16, 4:31 pm, Pablo Viojo wrote:
> The configuration that I send allows you to use memcached (or whatever you
> like) for all caches but the internal cake's cache
The configuration that I send allows you to use memcached (or whatever you
like) for all caches but the internal cake's cache (that should use file)
I have this configuration in a prod environment (using several memcached
servers) and it works fine.
Regards,
Pablo Viojo
pvi...@gmail.com
Thanks for your reply Pablo.
I'm able to use CakePHP's File Engine for cacheing, however this has
numerous drawbacks when compared to memcached:
I don't cache view files, because all of my pages require the
controller to run and usually a database query as well, so I cache
d
Sorry for the OT and the quite general questions
Has anybody used Redis and Memcached with a CakePHP app?
Any comments about performance, scalability, etc will be great appreciated
Thanks in advance!
Regards
Pablo Viojo
pvi...@gmail.com
http://pviojo.net
¿Que necesitas?
http
I was having issues using memcached for cake internal cache and memcached
has a maximum size for each stored object (1 MB) so I prefer to use File for
the internal cache. I defined
Cache::config('_cake_core_', array('engine' => 'File'));
Cache::con
ion'=> 30, //[optional]
> 'servers' => array('192.168.1.11:11211 '),
> 'compress' => false,
> ));
>
> use your server IP
>
> On Feb 11, 11:43 pm, Kareem Sabri wrote:
>
>
>
> > Hello,
x27; => false,
));
use your server IP
On Feb 11, 11:43 pm, Kareem Sabri wrote:
> Hello,
>
> Hopefully someone can help me out here.
>
> I have installed Memcached and all its dependencies. I have verified
> it is running correctly and I can connect via port 11211 (in
Hello,
Hopefully someone can help me out here.
I have installed Memcached and all its dependencies. I have verified
it is running correctly and I can connect via port 11211 (in command
line, not with cake)
My core.config is the default:
Cache::config('default',
> Never mind answered my own question. Looks like it's a bug in the
> Cache class.
Did you file a report?
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
"
Never mind answered my own question. Looks like it's a bug in the
Cache class.
I Added the following line to the Cache::read() function
$_this->_Engine[$engine]->settings = $settings;
just before the call to the engine to read.
Everything works as it should now.
On Nov 17, 10:06 am, mehodgs
I am trying to set up multiple configurations for the Memcache engine
to allow for varying caching periods in CakePHP 1.2.5. I have set up
the following:
Cache::config(
'long',
array(
'engine' => 'Memcache',
'duration'=> 100800,
'prob
'probability'=> 100,
'prefix' => Inflector::slug(APP_DIR) . '_',
'servers' => array('127.0.0.1:11211'),
'compress' => false
)
);
On Sun, Aug 30, 2009 at 2:07 PM, N
In CakePHP doc, I read about Memcached support included in
CacheEngines. AFAIK, memcached is a daemon. To be able to use it, we
will need to use its IP Address and Port number.
Can you help me figure out how I am going to set this is CakePHP?
Thanks
Neelesh
Is someone can help me?
On 13 Giu, 16:17, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> I would use memcached with Cake 1.2
> In the manual I haven't found anything.
> I hope someone can help me.
> I have installed memcached (I can see it in phpinfo).
>
I would use memcached with Cake 1.2
In the manual I haven't found anything.
I hope someone can help me.
I have installed memcached (I can see it in phpinfo).
In core.php I have uncommented the line about memcached.
ANd I have set Configure::write('Cache.check', true);
Then I
Hi:
Im using cake 1.2 pre beta,im trying to use its cache engine with
memcached
i set at core.php
Configure::write('Cache.check', true);
define ('CACHE_CHECK', true);
Cache::config('default', array('engine' => 'Memcache',
64 matches
Mail list logo