1

A few day ago I try to install and configure Redis and Varnish (by Turpentine) for my Magento site v.1.8 .

After this, I decide to rollback and I get my old (working) local.xml (which has the configuration for APC and Memcached) and decide to disable the two modules (Cm_RedisSession, Nexcessnet_Turpentine) enditing their xml file in /app/etc/modules with the tag false.

From this point over the var/cache dir is empty.

I try to delete the var/ dir to check permission rights, and what happen is that the var folder is created immediatelly with an empty cache folder inside.

How can I check the Magento cache behavior? Maybe this is because the cache passes from APC or Memcached and exclude the var/cache dir (as I read here https://magento.stackexchange.com/a/11534/9166 ).

This is my cache configuration in local.xml

    ...
<cache>
    <backend>apc</backend>
    <slow_backend>database</slow_backend>
    <slow_backend_store_data>0</slow_backend_store_data>
    <auto_refresh_fast_cache>0</auto_refresh_fast_cache> 
    <prefix>nameofmysite_</prefix>
</cache>

<cache>
    <backend>memcached</backend>
    <slow_backend>database</slow_backend>
    <fast_backend>Memcached</fast_backend>
     <fast_backend_options>>
        <servers>
            <server>
                <host><![CDATA[127.0.0.1]]></host>
                <port><![CDATA[11211]]></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>
    </fast_backend_options>

    <memcached>
        <servers>
            <server>
                <host><![CDATA[127.0.0.1]]></host>
                <port><![CDATA[11211]]></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>
...

Obviously before this changes my var/cache/ dir was populated regularly.

Thanks.

1 Answer 1

1

As you're not using a file based caching mechanism, Magento has no need to store files within the /var/cache/ folder - these are stored in Memcached and Database given you're configuration. If the solution previously gave you output in the /var/cache/ folder, then it's likely the configuration was cached from the previous set up.

2
  • Thanks for the answer but I still have this doubt because I have the same local.xml configuration in some others Magento sites in which the var/cache/ dir is filled regularly. There are some other tips that can I can check? Jun 17, 2014 at 13:15
  • Is there a use_cache.ser file there? If so, delete it. Feb 16, 2015 at 16:39

Your Answer

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

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