Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [cache]

Question related to Magento default caching system, full page cache or 3rd party caching solutions.

5
votes
0answers
111 views

Why the Magento 2 “Collection Data” Cache is used not for all entities?

In my practice I've never really faced with situation that it was needed to clean the collection cache. It is strange) I checked and detected that the magento uses the collection cache only for 4 ...
5
votes
0answers
405 views

How to create custom cache and store/get something in Magento 2

I want to store any dummy data in custom cache and get that data in my own custom cache. I have followed this link but not telling much explanation.
5
votes
0answers
600 views

Template block has not been whitelisted error

I have a site with a CMS page using the 'core/template' block, and getting an error Security problem: core/template has not been whitelisted - even though the 'core/template' is clearly listed in the ...
5
votes
0answers
496 views

All product images need to be defined in view.xml?

In Magento 2, the image sizes are defined in theme's view.xml file, e.g. in Luma theme: /app/design/frontend/Magento/luma/etc/view.xml: <image id="category_page_grid" type="small_image"> &...
4
votes
0answers
37 views

Magento 2.3 error after cache flush or clean

Every time I flush or clean Magento cache I get the following error on front and backend: Exception: Notice: Undefined variable: _ENV in /home/jacstoreonline/public_html/magento/vendor/magento/...
3
votes
0answers
70 views

Magento 2 - Cache warmer for multiple server

I have integrated a cache warmer module. Using cronjob it runs and creates cache for all the pages, and it's working properly. I have multiple servers (Let's say 2 servers), until now there is no ...
3
votes
0answers
50 views

Product's “Layout Update XML” code disappears from the site every 24 hours

I have some products with "Layout Update XML" Design updates (simple XML pointing to a template file; very basic and in the correct format). Every 24 hours after a cache flush, the code vanishes from ...
3
votes
0answers
268 views

Magento 2: Disable cache for price block

I want to disable the cache of the price block in detail page. However, I cannot find a place to modify it. I try to add cacheable="false" in module-catalog\view\base\layout\catalog_product_prices....
3
votes
0answers
168 views

Redis Cluster Gives Error in Magento-2

I have implemented Redis cluster in my local machine with three masters and three slaves. I did all the required configuration in my app/etc/env.php file and when I am accessing the project url, it ...
3
votes
0answers
303 views

Image base name file or image in cache? what is the best method of use images for SEO purpose and copyright (with watermark) protection?

In these months I'm working on a Magento CMS for the first time (version 1.9.2.1). I came across a problem due to image bulk rename. The thing that was asked to me is to optimize image file for a good ...
3
votes
0answers
93 views

Magento page does not load because cookie conflict

I have exact this problem: Maximum execution time exceeded. Clearing cookies only solution Sometimes and with some users the page does not load, and shows random errors with "Fatal error: ...
3
votes
0answers
191 views

Full Page Cache - Hole punch for timestamp

Many of my templates require a timestamp (for timers), when implementing full page cache (using nitrogento) the timestamp gets cached too which ends up showing wrong timestamp. What methods can I ...
2
votes
0answers
16 views

Magento 2 Custom cache for top menu

I want to create custom cache for top menu For this I have created cache.xml <?xml version="1.0" ?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
2
votes
0answers
38 views

Magento2 - Indexing / Full page cache problems

We are having long-term problems with indexer and cache settings. After reading great guide by @johnhughes1984 about caching and indexing we thought that everything will be alright with settings ...
2
votes
0answers
22 views

Magento 1.14.4.0: Programmatically clear cache of individual product

I need to clear the cache for individual product. For example, If admin change any detail/price/qty of product. I need to run script that clear the cache for that particular product only. I am running ...
2
votes
0answers
89 views

Magento2: What exactly is stored in Redis “page and default cache”?

We figured out that we are a bit unsure about what exactly is stored in redis "page and default cache". Until now, we thought it is only about configuration, and maybe some page templates. But today,...
2
votes
0answers
31 views

Custom plugin files updated code is not showing in admin panel though cache is cleared

I have created a custom module. Controller files are working fine. I am trying to update my module MySQL version and adding new fields to the module in block folder files but they are not applying in ...
2
votes
0answers
23 views

M1: How to invalidate the fpc manually for a product page?

I need to investigate an issue around full page cache (fpc) in M1, because we sometimes receive 404 errors on product pages when the cache is invalidated - and no 404 pages anymore after the cache has ...
2
votes
0answers
241 views

No TTL for LAYOUT Cache

I noticed that Magento Layout module does not provide TTL when saves to cache, so the keys in Redis are not expired. Example: vendor/magento/framework/View/Layout.php: $this->cache->save($this-...
2
votes
0answers
120 views

Error When i Re Enable Cache in Magento 2.2.5

i Have Disabled The cache of magento before editing my store and when i try to re enable the all cache and try to visit my store i'm getting this error : "There has been an error processing your ...
2
votes
0answers
126 views

Strange (browser) caching issue in cart

We had a third party build our initial website and I am in the process of 'fixing' things that were not done as well as we might have liked. One such issue was the manner they used to handle pages ...
2
votes
0answers
37 views

Cache System and Cookie reading Magento 1.9

In the header.phtml I have a DIV which gets visible only when a cookie is NOT set in the browser. <?php if (Mage::getModel('core/cookie')->get('cookiex') == '') { ?> <div></div&...
2
votes
0answers
313 views

Disable cache of static block Magento 1.9

How can I disable a widget or static block from being cached inside the Blocks HTML output cache? The widget loads a specific static block on all CMS pages. Inside the static block, I load a template ...
2
votes
0answers
145 views

problem getting current url when cache is turned on

Summary This problem is affecting my Venus Theme Mega Menu module. When caching is turned on the menu no longer shows correct .active classes for the current page. I'm looking in the module code ...
2
votes
0answers
151 views

Cached Images not shown in Product Image (CDN at AWS S3)

I am stuck here. As i am using S3 bucket and S3FS-FUSE for syncing my /media folder with S3 bucket with rsync (cronjob). As rsync is very slow in syncing cached images with S3, thus it results in ...
2
votes
0answers
298 views

Display dynamic Content in Magento Static Block

I have declared a static block in Magento 1.9.3.2 named 'subcategory_listing' that has the following code: {{block type="subcategory/listing" name="subcategory.listing" template="category/...
2
votes
0answers
458 views

Refresh cached product images programmatically

After flushing image cache, cached product images are rebuild when they are loaded from frontend like from product view page ... I need them restored w/o vistit every page manuall, so how to this in ...
2
votes
0answers
397 views

Problem with product image cache after upgrade

I'm new to Magento. I have just upgraded from 1.8.1.0 to 1.9.3.2. Something with the product image cache is not working. On my checkout page I get a long list of 404 Not Found errors for cached ...
2
votes
0answers
26 views

Magento 1.9 - how to set rules to invalidate old “version numbers” for the cache’s store on the client’s local computers

I have been suffered from users on my website couldn't see the update because of cache. On searching on Google, most of posts are noted like just flushing cache on back-end site and via FTP. Btw even ...
2
votes
0answers
126 views

Currency Selector not reflecting changed currency in footer due to magento cache

I have two currency selector in my magento store one in header and other in footer. When magento cache Blocks HTML output is disabled then both currency selector reflecting correct currency on ...
2
votes
0answers
43 views

Magento 2 ,category and flush magento cache error

magento 2.0.2 there are an error when doing flush magento cache and we found out when the products in one of the category ,all operation around the product will error, we cant deselect that cateogry ...
2
votes
0answers
156 views

Why Mage_CatalogIndex_Model_Aggregation is not caching layered navigation filters?

A question for an expert. Make sure you read the preamble - the question is at the bottom. In app/code/core/Mage/Catalog/Model/Layer/Filter/Attribute.php I noticed a functionality to cache ...
2
votes
0answers
522 views

Magento 2 layout cache corruption

We have a site under Magnento 2.1.0 CE and have been experiencing a strange issue. After being hit hard by traffic (normally hacking attempts or Asian spiders that ignore robots.txt), some pages on ...
2
votes
0answers
15 views

My products' prices keep refreshing between zero and non-zero prices, how do I resolve?

Under Admin > Attributes, There are three attributes that were created, Special Price, Start Date, End Date. For whatever reason, when I remove the price as a blank so that I no longer want to apply ...
2
votes
0answers
1k views

Leverage browser caching having Varnish installed

Magento is running on 1.9.x, and web server is Nginx having Varnish installed on it using Turpentine plugin. Site speed is very fine when running from any browser due to Varnish cache but page speed ...
2
votes
0answers
223 views

Redis default configuration and utilization

We did install Redis server 3.0.7 which has made our Magento store 1.9.x a bit better than before, but I just need to ask that all settings which comes out of the box in Redis is fine? or do I need to ...
2
votes
0answers
198 views

Cache Storage Management section is not displayed

I need to refresh my cache. But when i go to cache management page. It doesn't showing the cache storage management section. That section is blank If someone faced these type of issue or anyone who ...
2
votes
0answers
3k views

Why would the Blocks HTML output cache need to be refreshed daily?

I've noticed that our Blocks HTML output cache regularly needs to be refreshed, every day even when no one has been working on the Backend of Magento? Why would this cache become invalid so ...
2
votes
0answers
822 views

Retrieve updated mini cart (cart_sidebar) block - not cached version

I'm using Magento EE 1.13.2 and use jQuery to add products to the cart: var url = "/checkout/cart/add?product=" + productId + "&qty=" + qty + "&form_key=" + formKey; $j.get(url, "", function(...
1
vote
0answers
93 views

Magento 2.3: How to configure magento CLI commands to use custom names for dangerous redis commands

Environment OS: Ubuntu 18.04 LTS Server: Apache 2.4 Database: MySQL v14.14 distribution 5.7.25 PHP: 7.2 Redis: 5.0.4 Issue Following the digitalocean tutorial referenced ...
1
vote
0answers
23 views

What's the difference between flush the cache from admin panel and through command?

I have seen that we can flush the Magento cache via admin panel System> Cache Management and as well as by running the below command php bin/magento cache:flush I would like to know what's the ...
1
vote
0answers
19 views

Cache problem old images - Magento 1.9

In logs i found this media/catalog/product/cache/1/thumbnail/800x800/9df78eab33525d08d6e5fb8d27136e95 /p/a/_lindt_2132.jpg it's an old image. I checked in: var/cache the cache is deleted and ...
1
vote
0answers
16 views

Magento Cache No such File

I have the following in my logs which appeared after updating the M2EPro Module. fopen(var/cache/mage--9/mage---33f_m2epro_extension_M2ePro_Config_Module_data): failed to open stream: No such ...
1
vote
0answers
42 views

Magento 1: Add custom attribute in transactional e-mail

In transactional mail, I need to add a custom attribute. I modified the below files app/design/frontend/base/default/template/email/order/items/order/default.phtml app/design/frontend/base/default/...
1
vote
0answers
49 views

Magento 2 how to set permission in production mode

I have successfully completed all issues in developer mode, and now I moved to production mode, every thing is working fine but when I am try to cache clear from admin panel , frontend permission are ...
1
vote
0answers
36 views

Change image cache directory

Is there a way to change the directory that M2 uses as image cache to something other than /pub/media/catalog/product/cache ? I'm using Magento 2.2.3 at the moment.
1
vote
0answers
71 views

Update programmatically config content text/x-magento-init script inside of phtml template

For a requirement I had to override the config of the configurable.js script that is initialised inside configurable.phtml, this one specifically: <script type="text/x-magento-init"> { ...
1
vote
0answers
25 views

Cache Expiring Too Quickly

Hey so I've been wrestling with this one for a bit now. I have our store pretty much setup and am in the performance testing phase trying to get the site as speedy as possible. I'm using Magento's ...
1
vote
0answers
30 views

how to edit existing terms and conditions

After adding term & condition in magento 2.2.6, I can't find the edit or delete option. Tried to clear cahe, reindex, deploy static but noting working.
1
vote
0answers
43 views

How to get collection from database in phtml not from cache when full cache enabled

I have created an extension which I have uploaded in the marketplace but marketplace rejected due to cacheable="false". <block class="Company\Module\Block\Hello" name="information" template="...