Questions tagged [cache]
Question related to Magento default caching system, full page cache or 3rd party caching solutions.
1,199
questions
23
votes
5
answers
30k
views
How can I programmatically flush Magento's Cache?
I'm automating release configurations by bootstrapping Mage in several release scripts. At the end of the scripts, I need to flush Magento's cache.
Is there a way to flush the cache using one of the ...
2
votes
4
answers
3k
views
Cm_Cache_Backend_Redis - Suspected config cache invalidation
I have a cluster with 8 webserver nodes and a redis cache instance running on a separate server.
During high load, the throughput on the redis server goes through the roof, approximately 35-40 MB/s (...
2
votes
2
answers
9k
views
Gzip Comporession and leverage Browser Cache Not working
i am trying to optimize my store.
to optimize it i have added Gzip Code and Leverage Browser Cache Code in .htaccess File.
There are 2 .htaccess file on my server. one is .htaccess and second is ....
1
vote
2
answers
2k
views
Cache problem - prevent my module block to be cached
I have a module which includes block to each page. The block template prints javascript which displays notification to user.
First I defined observer in module config file:
<frontend>
&...
25
votes
4
answers
25k
views
Correct Method of Flushing Caches & Managing the Compiler
I'd like to know if there's any prefered procedure for the following:
Flushing of the Magento cache
Enabling/Disabling of the Magento Compiler
1. Flushing of the Magento Cache
There are a few ...
0
votes
1
answer
400
views
Add CSS file to page.xml using Filename-based cache busting?
I am using Filename-based cache busting, to make sure every time I make a change to a file resource revving happens (Steve Sounders Post).
For this matter I am using the following .htaccess file ...
7
votes
1
answer
6k
views
Various Magento Cache flushing methods
There are a number of ways to flush Magento cache, with slight differences. I have always been a bit confused about these and often end up overdoing it when deleting the cache. This my understanding ...
1
vote
1
answer
1k
views
Excessive wait time on Mage_Core_Block_Template::fetchView on /cms/index/index
I'm investigating why our homepage wait time is so slow (4.8s). Using NewRelic I've found out that the Mage_Core_Block_Template::fetchView call is using an excessive 2800ms. I don't understand why it ...
1
vote
1
answer
2k
views
Magento + Zend OpCache
Has anyone any experience on configuring Magento + Zend OpCache on Apache ?
I have configured in my testing environment using Nginx + PHP-FPM and Zend OpCode with PHP 5.5.9 and it seems to work fine ...
1
vote
1
answer
48
views
Are varied banners loaded at each site visit counter-productive for Magento because of caching?
I have a customer that would like a different banners loaded for each visit to a page. They like how teehanlax.com loads something different each time. They like the idea of a new experience each ...
0
votes
1
answer
267
views
Saving homepage do not invalidate Full Page Cache
I'm experience this strange issue on EE 1.13.1.0 on the CMS home page only:
I edit the homepage the changes are reflected on http://MYDOMAIN/home but not on http://MYDOMAIN.
If I clean the cache from ...
0
votes
2
answers
124
views
When do pictures of products get resized? How long do they stay there?
I've got pictures of some products in the folder:
media/catalog/product/cache/2/small_image/168x168/9df78eab33525d08d6e5fb8d27136e95
But actually not all of them.
That size would exactly fit for a ...
0
votes
2
answers
537
views
Wincache Magento Setup
Im currently running magento on a windows server, I have installed and configured wincache, I added the following to my local.xml file.
<session_save><![CDATA[files]]></session_save&...
0
votes
1
answer
406
views
Invalidate block cache after attribute was edited
How to invalidate block cache after product attribute was edited. E.g. there is a multiselect attribte and if I edit its values in Magento admin I need the cache of the block to be deleted and ...
0
votes
1
answer
3k
views
var/session/ session files are empty
We have a weird problem. On a site at random times the sessions files on the site are empty, 0 kb.
After removing/clearing the cache the sessions get back to about 2.2kb.
I have no clue to figure out ...
1
vote
1
answer
447
views
Disable FPC per website or store
Does anyone know if there is a method to tell the system to not Full Page Cache a specific store or website? And just to be clear, using EE FPC out of the box.
10
votes
3
answers
3k
views
Cache not enabling
I'm trying to enable the cache in magento that stopped overnight. When I turn shows success message but not active.
I tried to activate programmatically and with mysql but without success.
I also ...
1
vote
1
answer
766
views
How to write custom config data to cache?
The scenario is like this.
I want to programmatically change config data and write those values to cache. I know changing config data through programmatically is possible and how to do. But how can I ...
3
votes
1
answer
2k
views
Does "Flush Magento Cache" refresh all caches?
On the Cache Management page in Magento admin, does clicking the "Flush Magento Cache" button do the same thing as selecting all the check-boxes in the grid, choosing the Refresh action and clicking ...
15
votes
5
answers
15k
views
Full Page Cache on CE 1.8 - An FPC Magento Module? Varnish? Both?
So I am a bit confused as I go about researching Full Page Caching for Community Edition 1.8. I have already implemented a Two Level Redis Cache, CDN, tuned MySQL's my.cnf for max performance (w/ the ...
5
votes
1
answer
2k
views
Magento Enterprise 1.13.1 REDIS cluster with failover automation
One of the answers above mentions the use of:
Cache hosts (by parhamr)
There are two hosts running Redis in a master-slave configuration with automated failover. Three Redis instances are used to ...
3
votes
2
answers
485
views
In EE 1.13 clearing cache from Admin does not actually clean the cache
In magento EE 1.13 setup when I am clearing the cache from admin it does not clear the cache and my changes are not reflecting in frontend.
When I clear the cache directories from server my changes ...
2
votes
2
answers
2k
views
Fooman Speedster, CSS minifying correctly however JS returns a 403?
I installed Fooman Speedster today (I've used it before without problems) and set it up as per the guidelines. I didn't experience any of the common issues however when loading the page I noticed all ...
0
votes
1
answer
2k
views
Images not showing randomly
I have uploaded some thousands of product with 1 to 5 images each, so a consistent amount of images after all. After the upload I reviewed all the images one by one and they were ok.
Now, one week ...
1
vote
1
answer
206
views
Magento EE FPC ignored when in https?
Whilst browsing the FPC code in Enterprise_PageCache_Model_Processor, I cam e across this method:
/**
* Check if processor is allowed for current HTTP request.
* Disable processing HTTPS ...
1
vote
1
answer
3k
views
cache_dir is not writable
I am using Magento ver. 1.11.2.0. Site is having an error in admin side "cache_dir is not writable". Site frontend is working fine and in admin side only dashboard and configuration first page is ...
2
votes
1
answer
2k
views
how do I determine what cache tag is used for a block?
I have a block that uses addLink to create a checkout link in the header, to get the URL it uses a custom function $helper->getCheckoutUrl() ($helper being a utility helper created by someone else) ...
1
vote
1
answer
200
views
Magento custom cache clear by regex
Is it possible in Magento to allow for cache to be cleared in a custom code by using regular expression to target cache tags?
The scenario I have is I am know of a list of cache tags I will be ...
2
votes
0
answers
247
views
Issue with Redis removing breadcrumbs [closed]
For some reason Redis seems to be removing breadcrumbs from the product view. As soon as I flush Redis they reappear for a while then disappear again.
Does anyone know of an issue with Redis with ...
3
votes
6
answers
26k
views
How can the Magento caches & logs be cleared?
How can I go about clearing all of Magento's caches and logs by running a PHP script?
0
votes
2
answers
292
views
DOS on config cache clearing
I run a fairly trafficked store with 30 stores and 20 websites. It works fine when things are cached, but without the config cache enabled, the site is extremely slow.
This means that when I deploy ...
3
votes
1
answer
288
views
Magento APC User Cached Misses [closed]
I'm using APC for my online store, and while the APC file cache is working properly, the user cached entries are very low.
Here are my settings:
Any help would be greatly appreciated
0
votes
1
answer
959
views
Caching product_view efficiently
We currently use a "workaround" to cache our product view pages, as we have only a couple of configurable products with big collections it made sense to us at the time to create a couple of templates ...
4
votes
2
answers
10k
views
Is it possible to setup a cron job to flush product catalog images?
You can obviously manually flush the catalog images cache by going to Cache management and clicking on "Flush Catalog Images Cache". My question is can this be set as a scheduled task? If so, what ...
0
votes
1
answer
333
views
Magento multi site - How does cache management work and have to clear cache?
I am having problems with the cache on 1 domain. I have a multi domain magento v. 1.6.
I have made some changes to a CSS file and cleared cache, but it have only updated on 1 domain. I have 3. I ...
2
votes
3
answers
977
views
Empty header after clearing cache in Magento 1.7.0.2
I have been puzzled for more then a week and I really hope someone can help.
Situation is that we have nm online store that works great wine online store
So far so good after testing all and going ...
0
votes
1
answer
2k
views
Exclude one phtml file from cache
How should I go about creating a list of phtml files that I would like to be excluded from the standard magento caching system?
*Some Context:
I have a search bar in the header of a magento site. ...
0
votes
3
answers
1k
views
Why is my old logo still showing after I updated the logo? [closed]
I am using Magento Go and I had my logo set but when I set an updated version of it, I am still seeing the old version on the front-end. Why is this? It appears that I cannot flush the cache in ...
9
votes
3
answers
24k
views
Flushing REDIS Cache
Will either of the buttons FLUSH REDIS?
2
votes
2
answers
5k
views
Should BLOCK_HTML invalidate EVERY time we save a product?
My client raised this question today and I wanted to give a concise answer, as I understand it , the cache is only invalidated on the item that was updated?
Can anyone elaborate. This is EE 13.0.2
4
votes
2
answers
977
views
Frontend css cache issue
Having an issue with multisite where I edit css for each store to set image widths and height, for some reason the css isn't updating on certain sites. One of them took effect after clearing css/js ...
2
votes
1
answer
399
views
Full page caching issue with product quantity feedback on enterprise
I'm having a problem with full page caching whereby when a customer enters a product quantity which is more than the available stock, it sometimes alerts the user on the product page, but other times ...
2
votes
3
answers
431
views
magento compilation mode vs apc
Magento has a compilation mode in which you can compile all files of a Magento installation in order to create a single include path to increase performance.
Links for magento compilation mode:
...
1
vote
1
answer
5k
views
What is the reason for adding Pragma: no-cache to page requests by magento
When loading a Magento based request or page, in the headers of your request, will be a Pragma: no-cache , as well as settings in Cache-Control: for no-cache and must-revalidate.
In terms of ...
6
votes
2
answers
8k
views
Issues in implementing Holepunching in Magento FPC
I have a block close to what the 'welcome' block in the header is but slightly different.
Holepunching does not seem to be working for me I have mostly referred to
this link.
Here's my code:
I have ...
6
votes
7
answers
15k
views
error : cache_dir must be a directory?
I am working with Magento 1.7 and suddenly I have this error when I go to cache management:
cache_dir must be a directory
I tried this solution to change this file lib/Zend/Cache/Backend/File.php
...