WebHare community

Invalidate cached tag

Given this prebuilt page:

<prebuiltpage cachettl="600" tag="slootsmid:occasions" type="dynamic"

Is there some way to invalidate this cache from a WebHare (whscr) script?

wh cachereset :stuck_out_tongue:

This is how one module fixes it, extending DynamicWebPageBase:

  UPDATE PUBLIC RECORD FUNCTION GetDynamicPageCacheSettings()
  {
    RETURN
        [ ttl        := 45 * 1000 //max 45 secs
        , eventmasks := [ "wilminktheater:sync", "wilminktheater:seasons.changed", "wilminktheater:performance.*" ]
        ];
  }

But I think it’s undocumented and as far as I can see, outside CI coverage, so this approach might break at some point