0

How would I approach clearing the cache in the scenario where I have a wildcard page in my site

e.g. /sitecore/content/MySite/Home/Products/* which references another section of the content tree such as

/sitecore/content/MySite/Data/ProductCatalog/

Say I change a product under /Data/ProductCatalog and publish, how can I ensure that the cache is cleared for the correct page/URL?

4
  • Which cache do you want to clear?
    – Richard Seal
    Mar 19, 2020 at 16:09
  • 2
    When you publish any item, the entire HMTML cache is cleared. You do not need to do anything to target specific pages or items.
    – jammykam
    Mar 19, 2020 at 16:36
  • @RichardSeal I want to clear the HTML cache. Mar 19, 2020 at 23:09
  • @jammykam can't believe I didn't know that! Mar 19, 2020 at 23:09

1 Answer 1

0

Per @jammykam's comment, when you publish any item, the entire HTML cache is cleared. You do not need to do anything to target specific pages or items.

What you do need to do, is ensure you are not publishing items too often otherwise your site will be clearing its HTML cache all the time!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.