Thank you Henrik for your help.
I have already given the following entry in settings.py for python-memcached
binding
CACHES = {
'default': {
'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
'LOCATION': '127.0.0.1:11211',
}
}
What should i do next , if i want to get a pers-site cache? . Sorry i am a
newbie in this.
On Fri, Oct 7, 2011 at 6:50 PM, Henrik Genssen <[email protected]>wrote:
> did you read and follow this?
> https://docs.djangoproject.com/en/1.3/topics/cache/
>
> depending on what you want to do, you need:
> - entry in settings.py
> - python-memcached and pylibmc => otherwise caching fails silently
> - cache-middleware or cache_page decorator
>
> regrads
>
> Henrik
>
> >reply to message:
> >date: 07.10.2011 08:10:51
> >from: "tino" <[email protected]>
> >to: "Django users" <[email protected]>
> >subject: [<django-users.googlegroups.com>] memcached not working with
> django
> >
> >Hello,
> >
> >I am trying to implement memcached on my django site.
> ># telnet localhost 11211
> >Trying 127.0.0.1...
> >Connected to localhost.localdomain (127.0.0.1).
> >Escape character is '^]'.
> >stats
> >STAT pid 22537
> >STAT uptime 31523
> >STAT time 1317992962
> >STAT version 1.4.5
> >STAT pointer_size 64
> >STAT rusage_user 0.000000
> >STAT rusage_system 0.000000
> >STAT curr_connections 10
> >STAT total_connections 41
> >STAT connection_structures 11
> >STAT cmd_get 0
> >STAT cmd_set 0
> >STAT cmd_flush 0
> >STAT get_hits 0
> >STAT get_misses 0
> >STAT delete_misses 0
> >STAT delete_hits 0
> >STAT incr_misses 0
> >STAT incr_hits 0
> >STAT decr_misses 0
> >STAT decr_hits 0
> >STAT cas_misses 0
> >STAT cas_hits 0
> >STAT cas_badval 0
> >STAT auth_cmds 0
> >STAT auth_errors 0
> >STAT bytes_read 190
> >STAT bytes_written 23756
> >STAT limit_maxbytes 67108864
> >STAT accepting_conns 1
> >STAT listen_disabled_num 0
> >STAT threads 4
> >STAT conn_yields 0
> >STAT bytes 0
> >STAT curr_items 0
> >STAT total_items 0
> >STAT evictions 0
> >STAT reclaimed 0
> >END
> >
> >As you can see the cmd_get value is 0 in telnet stats. Can anybody
> >please advice?
> >
> >--
> >You received this message because you are subscribed to the Google Groups
> "Django users" 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/django-users?hl=en.
> >
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" 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/django-users?hl=en.
>
>
--
You received this message because you are subscribed to the Google Groups
"Django users" 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/django-users?hl=en.