Submit a request

How To Clear Server Side Cache When Changes Aren't Showing

Follow

Comments

5 comments

  • Avatar
    Mary Troost

    Would love to be able to clear cache from dashboard with a one button hit - :)

  • Avatar
    Placeholder Support #5

    Hey Mary!

    There isn't a button in the dashboard, but there is an alternative.
    In your browser create a bookmark and set the URL to:

    javascript:window.open(document.location.origin + "/store/admin/actions.aspx?ClearCache=true", "_self");

    If you are viewing the front of the store, while signed into the dashboard, the cache will be cleared without having to go through the Live Design.

    Its usually best to save the bookmark directly to the Bookmark Bar or something like that.

  • Avatar
    Kathy Sechrist

    Often clearing browser cache and server cache STILL doesn't show my new code. I've noticed that this is much more likely to happen when it's "behind the scenes" code - head tags, css, and such - but I've seen it with changes to visible elements as well. It's extremely frustrating to have to wait half an hour or more for my changes to show up. Can anything be done?

  • Avatar
    Austin Smith

    Hello Kathy!

    "I've noticed that this is much more likely to happen when it's "behind the scenes" code - head tags, css, and such - but I've seen it with changes to visible elements as well."

    This is actually likely due to your browser caching. Try clearing your browser's cache (ctrl+F5 in most browsers). If that doesn't work, navigate to Themes > Edit Theme > Head Tags and make sure all the CSS file references are using the file path versioned merge code like so:

    <link rel="stylesheet" type="text/css" href="##FILEPATHVERSIONED[##THEMEDIR##css/style.css]##">

    This adds a query string and a version number to the end of the file path. This lets the browser know if the file has been modified; which forces the browser to request the most up-to-date version of the file.

    --Austin
    SPOS Support

  • Avatar
    Kathy Sechrist

    That's awesome Austin - I will give that a try!!

Please sign in to leave a comment.