CacheMiddleware cache hit:

21 views
Skip to first unread message

Aki Tanaka

unread,
May 2, 2013, 8:29:17 AM5/2/13
to kay-...@googlegroups.com
Hello everybody,

I am using cron job to do run some tasks automatically.
I always get"CacheMiddleware cache hit:" Debug.


  1. 2013-05-02 21:27:01.376 /interactive 200 13ms 2kb AppEngine-Google; (+http://code.google.com/appengine)
  2. D2013-05-02 21:27:01.372 CacheMiddleware cache hit: key 'http://xxxxxx.appspot.com/interactive?lang=None'
  3. I2013-05-02 21:27:01.374 Saved; key: __appstats__:021300, part: 46 bytes, full: 6779 bytes, overhead: 0.000 + 0.002; link: http://xxxxxx.appspot.com/_ah/stats/detail


When I go to Memcache Viewer and Flush the Memcache, the Debug error disappear and the cron job is implemented.

What is the problem?

Can anybody help?


Ian Lewis

unread,
May 2, 2013, 6:07:31 PM5/2/13
to Kay Users Mailing List
Hi,

You should attach the no_cache decorator to your cron job so that it isn't cached (kay.cache.decorators.no_cache)

from kay.cache.decorators import no_cache

@no_cache
def cron_job(request):
    ... 




--
You received this message because you are subscribed to the Google Groups "kay-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kay-users+...@googlegroups.com.
To post to this group, send email to kay-...@googlegroups.com.
Visit this group at http://groups.google.com/group/kay-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
Ian

http://www.ianlewis.org/

Aki Tanaka

unread,
Jun 13, 2013, 9:35:50 PM6/13/13
to kay-...@googlegroups.com
Thanks for your reply.

It did as you said, but it still says the same thing


  1. 2013-05-02 21:27:01.376 /interactive 200 13ms 2kb AppEngine-Google; (+http://code.google.com/appengine)
  2. D2013-05-02 21:27:01.372 CacheMiddleware cache hit: key 'http://xxxxxx.appspot.com/interactive?lang=None'
  3. I2013-05-02 21:27:01.374 Saved; key: __appstats__:021300, part: 46 bytes, full: 6779 bytes, overhead: 0.000 + 0.002; link: http://xxxxxx.appspot.com/_ah/stats/detail


By the way, now, if I go to Memcache Viewer and Flush the Memcache, the Debug error still there, the cron job still runs, but does not implement its job at all.

Do you have any idea ?

Thanks

Reply all
Reply to author
Forward
0 new messages