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?

  • 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. – Lord Skeletor Dec 26 '14 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 Dec 26 '14 at 16:51
0

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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