[pLog-svn] corrupt cache
Jon Daley
plogworld at jon.limedaley.com
Wed Sep 12 04:18:41 EDT 2007
On Wed, 12 Sep 2007, Oscar Renalias wrote:
> On 9/11/07, Jon Daley <plogworld at jon.limedaley.com> wrote:
>> I'll see about adding some debug stuff, though I suspect checking for the
>> array at time of getting it out of the cache is too late. I need to see
>> when it is put in.
>
> Yes, you're right... Perhaps you can hook up your debug code to
> Cache::setData(), check if the cache id is CACHE_ARTICLES and if
> that's the case, check wether $dbObject is a single object or an
> array. If it's an array, then log a message and the stack trace if
> possible. I don't know how often this is happening, but this should
> hopefully provide us with enough information to debug it next time.
I'll try to work on it sometime this week.
>> Was revision 2872 correct, and if it is, can you add a comment saying why
>> the cache is being set, instead of removed, like the comment says?
>
> What makes you think that revision 2872 is the problem? I didn't see
> anything wrong with it.
I thought it was odd that the removeData was replaced with a
setData. I am still not clear on how the caching stuff works - probably
after debugging this I'll get it.
More information about the pLog-svn
mailing list