How does date range works?

Overview

This article provides a detailed overview of how the Start Date and End Date functionalities should work within Workbench, specifically focusing on the differences between live sites and preview. By understanding these scenarios and how to see the timely rules working within Preview, you can better manage the rules and ensure they are applied correctly.

Behavior of Rules

When creating or editing the rules, the behavior of rules depend on the combination of Rule Created Date, Start Date, and End Date as following:

Start DateEnd DateBehavior
SpecifiedSpecifiedThe rule should be applied:

start from: Start Date

end at: End Date
SpecifiedNot specifiedThe rule should be applied:

start from: Start Date

end at: until manually stopped
(delete or set a past end date)
Not specifiedSpecifiedThe rule should be applied:

start from: Rule Created Date

end at: End Date
Not specifiedNot specifiedThe rule should be applied:

start from: Rule Created Date

end at: until manually stopped
(delete or set a past end dat

Differences Between Live Site and Preview

Live Site

📘

Note

When "IsInPreview" is set to false in SearchAPI Request

Any rules created or edited should apply to the live site immediately once the changes are saved. However, changes are visible after the cache interval, which can last up to 10-12 minutes.

Preview ("IsInPreview": true)

📘

Note

When "IsInPreview" is set to true in SearchAPI Request

To see the rules set up with a specific date range within the Preview, Please specify the desired date range within the smart bar. This allows the preview to accurately reflect the rules as they would be applied within the specified timeframe.