1

Magento site is frequently getting CACHE issue and failing to serve CSS, site is getting broken page.

Once after flush redis cache or restart of redis is bringing site into normal position.

Below cache technologies being integrated for magento web site.

  1. Magento: 1.9.1.0
  2. Redis: 3.0.5
  3. Lesti FPC

Server have two redis instance running with Port No: 6379 and 6380

Site is configured with redis cache for magento backend and full page cache (FPC site cache), Redis's 6379 instance is configured for both cache setup but redis database are different.

Configurations as below:

backend redis configurations in local.xml

[![<cache>
<backend>Cm_Cache_Backend_Redis</backend>
            <backend_options>
                <server>127.0.0.1</server>
                <port>6380</port>
                <persistent>cache-fpc</persistent>
                <database>1</database>
                <password></password>
                <force_standalone>1</force_standalone>
                <connect_retries>1</connect_retries>
                <lifetimelimit>86400</lifetimelimit>
                <read_timeout>10</read_timeout>
                <compress_data>1</compress_data>
                <compress_tags>1</compress_tags>
                <compress_data>gzip</compress_data>
            </backend_options>

</cache>][1]][1]

FPC site cache redis configurations in fpc.

    <fpc>
            <lifetime>86400</lifetime>
<backend>Cm_Cache_Backend_Redis</backend>
            <backend_options>
                <server>127.0.0.1</server>
                <port>6380</port>
                <persistent>cache-fpc</persistent>
                <database>1</database>
                <password></password>
                <force_standalone>1</force_standalone>
                <connect_retries>1</connect_retries>
                <lifetimelimit>86400</lifetimelimit>
                <read_timeout>10</read_timeout>
                <compress_data>1</compress_data>
                <compress_tags>1</compress_tags>
                <compress_data>gzip</compress_data>
            </backend_options>
</fpc>

Scheduled redis cache clearing cronjob as per this reference URL: http://inchoo.net/magento/using-redis-cache-backend-and-session-storage-in-magento/

Ref Image  of broken site  home page :

  • Are you using any tool to monitor redis status/amount of memory used? give a try to: github.com/steverobbins/redis-status but if you want to get alerts or better stats try installing new rellic, appdinamics or another monitoring tool. – MauroNigrele Dec 29 '15 at 7:29
  • Have you ever found the solution? I'm facing the exact same and going nuts here. – ladle3000 May 24 '16 at 11:17
3

For us this came down to being default Magento configuration cache.

Simply disabling the first cache (configuration cache) in backend is a quick fix/workaround.

We fixed with the following https://github.com/AmpersandHQ/magento-ce-ee-config-corruption-bug

  • Also we are using Magento 1.9.1 which is what the OP was using too. I think it might be a bug in this specific version. – ladle3000 Jul 5 '16 at 13:21
  • The related patch SUPEE-4755 worked like a champ for us on Magento 1.9.2.4 – Scruffy Paws Aug 2 '18 at 20:26
-1

Also to avoid this issue I scheduled below cronjobs, which is flushing Redis cache

Redis Cache clean up script

30 02 * * *     /usr/local/bin/redis-cli -h localhost -p 6379 flushall
31 02 * * *     /usr/local/bin/redis-cli -h localhost -p 6380 flushall

Still some point of time I am hitting with the issue.

  • 2
    This is like taking painkillers for a headache from a brain tumor. Masks it for a couple hours. – ladle3000 Oct 10 '16 at 14:31

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.