• I’m using PhastPress with wp-cloudflare-page-cache. Need to tweak a single js file, but can’t figure out how to make CF to purge it from live.

    The direct url should look something like:

    https://www.domain.com/wp-content/themes/flatsome-child/assets/gp.ywcp.mods.js?ver=210805-163058

    However, PhastPress does an inline optimization that doesn’t seem like plain html:

    <script data-phast-original-src="https://www.domain.com/wp-content/themes/flatsome-child/assets/gp.ywcp.mods.js?ver=210805-163058" data-phast-params='{"ref":"fbR5D0Vw9Hk"}' type="text/phast" id="gp-ywcp-mods-js"></script>

    My cache is quite large, and clearing everything everytime I need to make such a tweak is overkill. How can I purge a single file effectively from my site and CF?

    Thanks.

Viewing 1 replies (of 1 total)
  • Plugin Author Albert Peschar

    (@kiboit)

    Hi @alx359,

    If the script file is retrieved by PhastPress it should not be necessary to purge the cache. PhastPress should detect changes automatically.

    Otherwise, you should just bump the ver so that the URL changes. If this is not feasible, you can use this plugin: Cachebuster

    –Albert

Viewing 1 replies (of 1 total)
  • The topic ‘Selective purge of CF cache’ is closed to new replies.