Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Patrick van Kemenade 69 posts 263 karma points
    Jan 10, 2021 @ 19:54
    Patrick van Kemenade
    0

    Clearing cache when developing a plugin

    What is an easy way to clear the cache while developing a plugin.

    So far the only thing that always seem to work is editing the package.manifest

    And in the link, for instance:

    /app_plugins/js/myjsfile.js?v=102

    And then every time update v=xxx to a higher number. Same for the .html and .css

    But there must be an easier way.

  • Nicholas Westby 2005 posts 6843 karma points c-trib
    Jan 10, 2021 @ 20:21
    Nicholas Westby
    100

    I feel like I usually don't have a problem, so maybe something about my configuration ensures this (it's been a few weeks since I've had to make any back office changes though, so maybe I'm not remember things correctly). Some things I do that may or may not help you:

    • I debug from Visual Studio (rather than from IIS).
    • The web.config is set to have debug be true.
    • I have the Chrome inspector open and the browser is set to have caching disabled.

    BTW, I've gotten into trouble before setting a query string in the package.manifest file. I think there was some problem with ClientDepenency or something. Might have been a temporary issue, but thought I'd give you a heads up.

  • Patrick van Kemenade 69 posts 263 karma points
    Jan 10, 2021 @ 21:06
    Patrick van Kemenade
    0

    Thanks, I didn't set the cache disabled in Chrome DevTools that helped.

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies