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',
'servers' => array(
'172.16.30.15'
),
));
the cakes default /pages/homepage tells me that cake is connecting to
memcached
at catalogs controller I have the following:
var $helpers =
array('Html','Cache','Pagination','Form','Ajax','Javascript');
var $cacheAction = array(
'homepage/' => 3600,
'newicons/' => '+1 hour',
);
i did a static php script to check memcached status
<?php
$memcache = new Memcache;
$memcache->addServer('172.16.30.15', 11211);
$version = $memcache->getVersion();
print_r($memcache->getExtendedStats());
$cacheKey = $memcache->get("cake_homepage");
echo($cacheKey);
echo "<br>Server's version: ".$version."<br/>\n";
?>
this gives me the following information:
Array
(
[172.16.30.15:11211] => Array
(
[pid] => 15490
[uptime] => 1167
[time] => 1193868474
[version] => 1.2.2
[pointer_size] => 32
[rusage_user] => 0.012998
[rusage_system] => 0.012998
[curr_items] => 0
[total_items] => 0
[bytes] => 0
[curr_connections] => 8
[total_connections] => 9
[connection_structures] => 9
[cmd_get] => 49
[cmd_set] => 0
[get_hits] => 0
[get_misses] => 49
[evictions] => 0
[bytes_read] => 4190
[bytes_written] => 55204
[limit_maxbytes] => 67108864
[threads] => 1
)
)
<br>Server's version: 1.2.2<br/>
With that script I was able to determine that cake is connecting to
memcached but is not writing to it
Im following all the steps for cache implementation described at
http://www.scribd.com/doc/5547/CakePHP-tutorial-no-5-from-IBM
Right now im little frustrated , has anybody has been successful on
using memcached with cake 1.2 pre beta?
I really appreciate any help or clue on how to fix this .
Thanks
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---