WebFaction
Community site: login faq
0
1

the problen is I do not know how cache should be setup for askbot in webfaction, here is the answer which kind of cache will work, http://askbot.org/en/question/7116/answers-vanish-then-appear-again-when-refreshing?answer=7144#answer-container-7144 read 1st answer by evgeny here and tell me the process for this kind of cache. thanks in advance.

asked 29 Apr '12, 04:01

MR MAN
538
accept rate: 0%


You can use memcached for your Django based applications by following: http://docs.webfaction.com/software/memcached.html#setting-up-memcached http://docs.webfaction.com/software/django/config.html#configuring-django-to-use-memcached

Please let us know if you have any problems following the above.

permanent link

answered 29 Apr '12, 04:19

neeravk
1.5k3412
accept rate: 41%

did you read what here the user evgeny is saying.

http://askbot.org/en/question/7116/answers-vanish-then-appear-again-when-refreshing?answer=7144#answer-container-7144

see the answer of evgeny here

(29 Apr '12, 04:52) MR MAN

I did read it, it says:

"For production setup please remember to use shared memcached or redis cache instance."

which is why I gave you the guide to use memcached in your app.

Do you want to use redis?

(29 Apr '12, 04:56) neeravk

For production setup please remember to use shared memcached or redis cache instance.

The default setting locmem:// may not work for you.

tell what steps to take now ???

(29 Apr '12, 04:58) MR MAN
  1. You need to start a memcached instance as your user. you can do that by follwing: http://docs.webfaction.com/software/memcached.html#setting-up-memcached

  2. You then need to configure your Django(which is used internally by askbot) install to use memcached: http://docs.webfaction.com/software/django/config.html#configuring-django-to-use-memcached

(29 Apr '12, 05:02) neeravk

You can also see: http://community.webfaction.com/questions/8704/how-to-configure-memcached-for-production-use-with-askbot

(29 Apr '12, 05:13) neeravk

got internal server error

(29 Apr '12, 06:24) MR MAN

Could you let us know of the internal error you are encountering? It should be logged in your ~/logs/error_[the_name_of_your_application].log file, so if your application is named askbot it should be ~/logs/error_askbot.log.

It might also be visible if you set the DEBUG variable to True in your settings.py file and then browse the page.

If you don't want to post information about your account on a public place such as this QA website, you can always open a support ticket.

(29 Apr '12, 06:35) iliasr ♦♦

setup memcached for production use!

#see http://docs.djangoproject.com/en/1.1/topics/cache/ for details
CACHE_BACKEND = ''memcached://127.0.0.1:11211/''
#needed for django-keyedcache
CACHE_TIMEOUT = 6000
CACHE_PREFIX = 'coto' #make this unique
CACHE_MIDDLEWARE_ANONYMOUS_ONLY = True
#If you use memcache you may want to uncomment the following line to enable memcached based sessions
#SESSION_ENGINE = 'django.contrib.sessions.backends.cache_db'

AUTHENTICATION_BACKENDS = (
'django.contrib.auth.

these are fields in setting.py of askbot now tell me what I have to fill in each.

(29 Apr '12, 06:37) MR MAN

Once you have installed memcache, you need to replace the following:

CACHE_BACKEND = ''memcached://127.0.0.1:11211/''

per Configuring Django to Use Memcached with:

CACHES = {
    'default': {
        'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
        'LOCATION': 'unix:<MEMCACHED_SOCKET>',
    }
}
(29 Apr '12, 07:26) timg ♦♦

internal server error.

(29 Apr '12, 07:52) MR MAN

Please open a support ticket, so we can look at your files and logs to find the exact problem.

(29 Apr '12, 07:57) timg ♦♦
showing 5 of 11 show 6 more comments
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×17

question asked: 29 Apr '12, 04:01

question was seen: 5,049 times

last updated: 29 Apr '12, 07:57

                              
WEBFACTION
REACH US
SUPPORT
LEGAL
© COPYRIGHT 2003-2020 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM