Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

AEM Short url cache clear when long url page is activated

NBertie
Level 2
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
Lokesh_Shivalingaiah
Correct answer by
Community Advisor
Community Advisor
2 Replies
Lokesh_Shivalingaiah
Correct answer by
Community Advisor
Community Advisor
NBertie
Level 2
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