0

first of all I beg your pardon for my lack of knowledge about this argument, everything I have done is from some merged tutorial.
I'm trying to enable memcache:

<cache>
        <slow_backend>File</slow_backend>
        <slow_backend_store_data>0</slow_backend_store_data>
        <fast_backend>memcached</fast_backend>
        <fast_backend_options>
            <servers>
                <server>
                    <host><![CDATA[127.0.0.1]]></host>
                    <port><![CDATA[20012]]></port>
                    <persistent><![CDATA[1]]></persistent>
                </server>
            </servers>
        </fast_backend_options>

        <backend>memcached</backend>
        <memcached>
            <servers>
                <server>
                    <host><![CDATA[127.0.0.1]]></host>
                    <port><![CDATA[20012]]></port>
                    <persistent><![CDATA[1]]></persistent>
                </server>
            </servers>
            <compression><![CDATA[0]]></compression>
            <cache_dir><![CDATA[]]></cache_dir>
            <hashed_directory_level><![CDATA[]]></hashed_directory_level>
            <hashed_directory_umask><![CDATA[]]></hashed_directory_umask>
            <file_name_prefix><![CDATA[]]></file_name_prefix>
        </memcached>
    </cache>

The problem is that Siteground says to place this code just before the closing </config> tag, but almost every other tutrial says to place it inside the <global> tag, plus my full page cache plugin detects memcached only if it's placed inside the <global> tag.
How do I know which one is correct?

3
  • 1
    Your setup seems correct but if you are running Magento CE 1.8 or EE 1.13 or newer you should consider using Redis. Commented Dec 26, 2014 at 16:41
  • @Reindex'EmAll Unfortunately I'm running on a shared plan and they offer only mod_pagespeed(which I'm using, I have obtained pretty good results), varnish(that I can't get it to work) and memcached
    – Razorphyn
    Commented Dec 26, 2014 at 16:51
  • svn.magentocommerce.com/source/branches/1.9/app/etc/…
    – user2857
    Commented Dec 26, 2014 at 18:08

1 Answer 1

0

<cache> should be placed inside the <global> node. That is the correct location.

3
  • lol svn.magentocommerce.com/source/branches/1.9/app/etc/…
    – user2857
    Commented Dec 26, 2014 at 18:07
  • Not really constructive. Add your thoughts as an answer or as a comment. Not only a link please.
    – mbalparda
    Commented Dec 30, 2014 at 23:20
  • this must be your answer.
    – user2857
    Commented Dec 30, 2014 at 23:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.