You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@shindig.apache.org by Brandon Peters <br...@gmail.com> on 2008/06/20 20:17:18 UTC
CacheMemcache error
I just did a svn update on my version of shindig (after about two
weeks of not doing SVN updates) and I got this error:
Cannot use object of type GadgetFeatureRegistry as array in
/var/www/shindig/php/src/common/CacheMemcache.php on line 108
I switched back over to CacheFile to get the site working, but would
like to use the Memcache interface at the end of the day.
Thanks,
Brandon
--
Brandon Peters
Re: CacheMemcache error
Posted by Chris Chabot <ch...@xs4all.nl>.
What happened is that i added some code to deal with the configurable
refreshInterval param of the proxy requests (and added some basic
cache stampeding protection).
With file based cached that was easy, just look at the file modified
time to see how old it is, however memcache offers no such
information .. so i changed the caching scheme from straight storing
objects, to storing an array with the time and data... so since you
didn't flush the cache, the information was all out of wack compared
to what it expected :)
Glad it got resolved,
-- Chris
On Jun 20, 2008, at 8:30 PM, Brandon Peters wrote:
> Yes, that fixed it. Sorry, forgot to try clearing my cache first.
> Thanks,
> Brandon
>
> On Fri, Jun 20, 2008 at 2:22 PM, Ropu <ro...@gmail.com> wrote:
>> line 105-111
>>
>> if (($ret = @memcache_get($this->connection, $key)) ===
>> false) {
>> return false;
>> }
>> if (time() - $ret['time'] > $expiration) {
>> $this->delete($key);
>> return false;
>> }
>>
>> try flushing ur mem cache.
>>
>> # sudo /etc/init.d/memcached restart
>>
>> seems that the data u have the that $key has old values. without
>> the new
>> structure for each data that adds the time stamp
>>
>> hope this helps
>>
>> ropu
>>
>> On Fri, Jun 20, 2008 at 11:17 AM, Brandon Peters <brandon.peters@gmail.com
>> >
>> wrote:
>>
>>> I just did a svn update on my version of shindig (after about two
>>> weeks of not doing SVN updates) and I got this error:
>>>
>>> Cannot use object of type GadgetFeatureRegistry as array in
>>> /var/www/shindig/php/src/common/CacheMemcache.php on line 108
>>>
>>> I switched back over to CacheFile to get the site working, but would
>>> like to use the Memcache interface at the end of the day.
>>> Thanks,
>>> Brandon
>>>
>>> --
>>> Brandon Peters
>>>
>>
>>
>>
>> --
>> .-. --- .--. ..-
>> R o p u
>>
>
>
>
> --
> Brandon Peters
Re: CacheMemcache error
Posted by Brandon Peters <br...@gmail.com>.
Yes, that fixed it. Sorry, forgot to try clearing my cache first. Thanks,
Brandon
On Fri, Jun 20, 2008 at 2:22 PM, Ropu <ro...@gmail.com> wrote:
> line 105-111
>
> if (($ret = @memcache_get($this->connection, $key)) === false) {
> return false;
> }
> if (time() - $ret['time'] > $expiration) {
> $this->delete($key);
> return false;
> }
>
> try flushing ur mem cache.
>
> # sudo /etc/init.d/memcached restart
>
> seems that the data u have the that $key has old values. without the new
> structure for each data that adds the time stamp
>
> hope this helps
>
> ropu
>
> On Fri, Jun 20, 2008 at 11:17 AM, Brandon Peters <br...@gmail.com>
> wrote:
>
>> I just did a svn update on my version of shindig (after about two
>> weeks of not doing SVN updates) and I got this error:
>>
>> Cannot use object of type GadgetFeatureRegistry as array in
>> /var/www/shindig/php/src/common/CacheMemcache.php on line 108
>>
>> I switched back over to CacheFile to get the site working, but would
>> like to use the Memcache interface at the end of the day.
>> Thanks,
>> Brandon
>>
>> --
>> Brandon Peters
>>
>
>
>
> --
> .-. --- .--. ..-
> R o p u
>
--
Brandon Peters
Re: CacheMemcache error
Posted by Ropu <ro...@gmail.com>.
line 105-111
if (($ret = @memcache_get($this->connection, $key)) === false) {
return false;
}
if (time() - $ret['time'] > $expiration) {
$this->delete($key);
return false;
}
try flushing ur mem cache.
# sudo /etc/init.d/memcached restart
seems that the data u have the that $key has old values. without the new
structure for each data that adds the time stamp
hope this helps
ropu
On Fri, Jun 20, 2008 at 11:17 AM, Brandon Peters <br...@gmail.com>
wrote:
> I just did a svn update on my version of shindig (after about two
> weeks of not doing SVN updates) and I got this error:
>
> Cannot use object of type GadgetFeatureRegistry as array in
> /var/www/shindig/php/src/common/CacheMemcache.php on line 108
>
> I switched back over to CacheFile to get the site working, but would
> like to use the Memcache interface at the end of the day.
> Thanks,
> Brandon
>
> --
> Brandon Peters
>
--
.-. --- .--. ..-
R o p u