FROM CACHE - en_header

Purge cache in shopify site

Jitender_Singh
New Member
1 0 4

Hi All,

I am new to shopify and i have made some changes in one of my liquid file. Those changes are only visible in my live site when i hard refresh it. I need to purge cache of my app from my admin panel but couldn't find a option.

Any help would be appreciated.

Thanks in advance.

Replies 22 (22)
Jason
Shopify Expert
10915 192 2190

Cache clearing should happen automatically if you're editing the Liquid files.

Can you provide more detail on what you're doing, and the replication steps?

★ I jump on these forums in my free time to help and share some insights. Not looking to be hired, and not looking for work. http://freakdesign.com.au ★
Diego_Lucero
Tourist
6 0 6

Hi Jason, 

I am having the same problem, and have been having this problem ever since I started working with Shopify.

I have a Dev store, and I am developing in the browser, not locally on my machine.  I noticed that there are times when I make changes to liquid files that they do not register AT ALL in the overall design of the pages of the site that I am working on. For example, I change the padding for a div from 25vh to 0, and nothing happens after I save, refresh, hard refresh, purge cache and refresh, try a different browser, NOTHING!

I even went as far as to Comment out all the code in the liquid file! No changes on the front end. 

What i need to resort to is creating a duplicate file with a different name, and even then it doesn't work.

I'm surprised there is no documentation or controls on the CDN side of things. 

jfoster
Shopify Partner
4 0 2

I have this same issue with a .js.liquid file in a client's Assets folder. The file is created as part of an app installation.

 

I've tried renaming the file and naming it back. The only way I can get it to purge the cdn cache for it seems to be to delete the file and re-upload it which is part of the app uninstall / reinstall process.

master_shake
Shopify Partner
2 0 2

I am also having this problem. The only way I have managed to solve it is by renaming the files and running build/deploy EVERY TIME i make a change to the liquid file. This is unacceptable and an extreme hinderance to the development process. How do I turn off the caching??

Jason
Shopify Expert
10915 192 2190

Before claiming it's a cache issue, let's get an example url of an asset that is out of date. That will help to rule out any early issues in the implementation.

Are you using the asset_url filter?

★ I jump on these forums in my free time to help and share some insights. Not looking to be hired, and not looking for work. http://freakdesign.com.au ★
master_shake
Shopify Partner
2 0 2
I'm in development, but I am having trouble with my homepage

https://fail-jewelry-dev.myshopify.com

I am not getting any errors when I run build and deploy so now I don't know
why the page won't update.
johnkmeas
Tourist
3 0 1

I'm having the same problem. It seems to only happen to js.liquid files from the assets folder. 

I have this condition that should be false and not return anything encapsulated within:

 

{% if settings.show_multiple_currencies %}

but when I inspect the source file from my browser, it appears that it's giving the code that it shouldn't.

The logical conclusion is that Shopify is caching the js version after it gets compiled from the liquid version. So changes to settings data is not trickling down right away to the js version.

This is totally killing my development workflow.

 

SobefyOscar
Shopify Partner
113 11 40

Same issue here guys, 

 

Recently updated a library located inside vendor.js file, I'm including the asset_url filter in my call out but the url still points to the old version of the file. 

 

going a bit bananas!

Want to customize or make changes to a theme? Hire me.
If my answer was helpful please Like and Accept Solution.
Email: oscar@sobefy.com
Website: Sobefy.com
Lulu1
Shopify Partner
28 1 26

Same here, tried saving using ThemeKit and also with the code editor, same results

The version ID stays the same

Lulu1
Shopify Partner
28 1 26

Seems like  script_tag is not working correctly with cache busting
So instead of:

{{ 'shop.js' | asset_url | script_tag }}

Use this:

<script src={{ 'shop.js' | asset_url }}" type="text/javascript"></script>

 

LukePhoenix
New Member
1 0 0

Do you remember in which file you replaced that line of code? I’m having the cache problem...

Lulu1
Shopify Partner
28 1 26

It depends, where you load these assets, but for JS and CSS it will probably be theme.liquid

gonw
New Member
2 0 0

Hello

I'm doing changes inside the tags {% stylesheet %}  on liquid files inside the folder sections.

I'm using the online file editor of shopify. 

After save, i can't see the changes.  the workflow it's painfully slow. It took several reloads to see the changes.

I'm worried for the proyect deadlines.

Can you help me please?

 

Lulu1
Shopify Partner
28 1 26

Are you using Theme Kit?

It has a live reload feature and it works pretty well...

gonw
New Member
2 0 0

Yes I am using theme kit
I use the theme observation command to see the changes, but ... It's the same problem.

Changes to .liquid files are not reflected, and it takes several attempts to reload to see them.

fiver
New Member
2 0 1

Try reloading in incognito mode. For me it's usually the browser that does not flush the file when it's js or css.

Neich78
Tourist
4 0 4

I am using Prestige theme and I have several problems to see any changes in css files, products, html pages, etc. If I use an incognito mode, contents are updated but not always. I think this is a serious Shopify issue to be solved.

Thanks

grabfash
New Member
1 0 0

I got same.trouble... why????

FervEngineering
Excursionist
19 0 12

Any updates to this or has it been abandoned by shopify staff?