How to clear the whole cache when using django’s page_cache decorator?

I’ve had this problem with an SQLite database cache – the clear() method doesn’t clear the cache although it works fine with a MySQL database cache. It seems that a SQLite cache needs a call to django.db.transation.commit_unless_managed() after the DELETE from [table] statement is run. I have been using multiple caches since before official support … Read more

Difference between django-redis-cache and django-redis for redis caching with Django?

I am currently using django-redis as cache backend for Redis. I haven’t used django-redis-cache so far, but what made me take the decision to use django-redis are the following: Modular client system (pluggable clients). Some of the pluggable clients come out of the box (shard client, herd client, etc.) Master-Slave support in the default client. … Read more

How do you know if memcached is doing anything?

You could use the official perl script: memcached-tool 127.0.0.1:11211 stats Or just use telnet and the stats command e.g.: # telnet localhost [memcacheport] Trying 127.0.0.1… Connected to localhost. Escape character is ‘^]’. stats STAT pid 2239 STAT uptime 10228704 STAT time 1236714928 STAT version 1.2.3 STAT pointer_size 32 STAT rusage_user 2781.185813 STAT rusage_system 2187.764726 STAT … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)