Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.
SOLVED

AEM Short url cache clear when long url page is activated

Avatar

Level 2

Hi Team,

we have set up the short url in the system using etc/map which are internally re-directed to the long version of it. Example

http://<host_name>>/<locale>/category/product.html ---this maps to a long url within CQ http://<host_name>>/<locale>/year/category/family/product.html

Issue is that when someone activates the page within CQ then the long url cache gets cleared at the dispatcher side. But the short url cache remains the same. Is there a cleaner and scalable way to handle this scenario.

Please advice

Thanks

Nitin

1 Accepted Solution

Avatar

Correct answer by
Level 10
2 Replies

Avatar

Correct answer by
Level 10

Avatar

Level 2

Thanks a lot for the response and pointers. So that means that we keep the etc/map settings as it is on pub/author side and have the apache mode re-write rule set up at the dispatcher side right , perhaps the same set of rules like we did at etc/map

So next time when

  1. When author activates the page under the long path, the dispatcher cache gets cleared out for the long url
  2. User who accesses the short url would be [PT] to the long url of the page which is anyways cache.

Please let me know if this understanding is correct

Thanks

Nitin