Expand my Community achievements bar.

Join us in celebrating the outstanding achievement of our AEM Community Member of the Year!

Is there any implementation we pass CRON expression to DailyExpiresHeaderFilter rather than time.

Avatar

Level 1

Hi All,
I'm looking for suggestions where i need to use this filter to have something to refresh at 2 minutes past each hour.
Acs commons implementation take simple date format, where i'm looking for custom implementation where we can configure CRON expressions for the same.

4 Replies

Avatar

Level 6

Hi @Diuc 

 

For ACS-TTL based implementation, you can apply customization to write your own logic -

 

Similar example i found for DispatcherMaxAgeHeaderFilter.java

 

TTL based ACS logic links : GitHub Link

 

Hope this helps 

 

Thanks

 

 

 

 

Avatar

Community Advisor

Hi @Diuc 

 

Can you please provide more details on your requirement. We typically use cron expression for a scheduler so curious to learn more on your request.

 

Thanks

Narendra

Avatar

Administrator

@Diuc Did you find the suggestions helpful? Please let us know if you require more information. Otherwise, please mark the answer as correct for posterity. If you've discovered a solution yourself, we would appreciate it if you could share it with the community. Thank you!



Kautuk Sahni