سؤال

cache cache يشكو من TypeError.لقد بحثت على Google، حتى تعقب تعقب القضايا في Beaker لكنها لم تتمكن من العثور على أي شيء.

أنا ذاكرة التخزين المؤقت للاستعلامات مثل الطريقة التالية giveacodicetagpre.

ومع ذلك عندما أقوم بتشغيل البرنامج، فهذا ما أتلقى؛ giveacodicetagpre.

هل أفعل شيئا خاطئا أم أن هذا خطأ في دورات الدورق؟

هل كانت مفيدة؟

المحلول

Your code calls cache.cache with an integer for expire, which is correct, but clearly either expiretime or storedtime is winding up with a string. [From the error message it has to be expiretime. --ed] So here's what I think happened:

(1) You called cache.cache with a string expire at some point. [Maybe even from the default cache.expire in the CacheManager opts, not sure.]

(2) You fixed the bug, producing the code you submitted (which works for me).

(3) You reran the code without deleting the cache directory, and so somehow it picked up the previous state.

I can reproduce your error by following the above prescription. Could you delete your cache (everything in cache.data_dir and cache.lock_dir) and try again?

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top