cancel
Showing results for 
Search instead for 
Did you mean: 

Cache Flush Issue

Cache Flush Issue

I have a really annoying cache flushing issue that I can't seem to pinpoint the cause of.

My storefront uses a static block.

Any saved changes made to the static block are never reflected on the storefront unless I flush magento cache.

I need to flush the cache every time any changes are made!!

Weird thing I only have this problem on my hosting.

I have installed magento on my laptop and I don't seem to have this issue at all. Tested both production and developer modes. Any changes I make to a static block I instantly see on the storefront.

This is really frustrating as I've implemented a visual store front block editor into my database with API to streamline updating the site, but having to login to adminpanel everytime to flush the cache kills the whole purpose of it).

Any ideas what might be causing it.

1 REPLY 1

Re: Cache Flush Issue

Hi @roman_polevecko

 

Blocks can be set as non-cacheable by setting the cacheable  attribute false in layout XML files. For example

 

<block class="Block\Class" name="blockname" cacheable="false" />

 

Pages containing such blocks are not cached.

 

Fore more details refer below links : 

 

https://magento.stackexchange.com/questions/103256/how-to-disable-the-cache-for-the-block-in-magento...

 

https://magento.stackexchange.com/questions/93455/how-do-disable-caching-of-custom-block-on-product-...

 

Hope it helps !

if issue solved,Click Kudos & Accept as Solution