Inconsistent Check Interval Times Expires Web Content Articles Prematurely

This article documents a known issue when configuring the Web Content check interval settings, and provides a workaround for the user. This known issue only affects Liferay Digital Experience Platform 7.0.

To configure how often Web Content articles are published or expired:

  1. Navigate to the Control Panel → Configuration → System Settings.
  2. Click on the Web Experience tab.
    web-content-check-interval03_-_01.PNG
  3. Click Web Content Administration.
    web-content-check-interval01_-_02.png
  4. This setting controls how often the articles are searched to try and find articles that need to be expired. In this case, by default this is every fifteen minutes. As an example, assume the expiring logic will run at 1:00 PM. Articles that have an expiration date any time between 1:00 PM and 1:15 PM will be expired. Administrators can decrease this time but this means the check will be run more often and put more strain on the server.

However there is a second place where the web content check interval can be set.

  1. Navigate to the Control Panel → Configuration → System Settings → Web Experience.
  2. Click Web Content.
    web-content-check-interval02_-_03.PNG
  3. The setting also controls how often articles are searched to be displayed, expired, and reviewed. Unlike the Web Content Administration tab, the Check Interval value here is in milliseconds. In this case, by default, this is every 24 hours.

The issue arises when both check interval values conflict:

  1. Navigate to Content → Web Content for whichever site the content is to be created and displayed.
  2. Click the (+) button → Basic Web Content.
  3. Enter a title.
  4. Enter some content.
  5. Click the Schedule tab at the bottom.
  6. Uncheck the Never Expire checkbox.
  7. Set the Display Date as today and the Display time to be the same hour as article creation.
  8. Set the Expiration Date as tomorrow and the Expiration time to be just under 24 hours. (If the article was created at 11:00 AM, set it to expire at 09:00 AM).
    web-content-check-interval04_-_04.png
  9. Click the Publish button.

The expected result is that the article will expire tomorrow at 09:00 AM. However, the article actually expires in 15 minutes from creation date. In this example, the article was expired by 11:20 AM. The reason: when checking for articles to expire, the system look X amount of time into the future and expire all of those. This X amount of time is taken from the secondary Check Interval. In this example, it was 24 hours.

Resolution

Status: Fixed

Update to Liferay DXP 7.0 SP9 or apply DXP 7.0 Fix Pack 53.

For customers who have not yet updated, here is a workaround for Liferay DXP 7.0:

  1. Navigate to the Control Panel → Configuration → System Settings → Web Experience.
  2. Click Web Content.
    web-content-check-interval05_-_05.png
  3. Enter 900000 in the Check interval field.
  4. Click the Save button.

Once the two values are the same, the system will not expire any web content articles prematurely as in the example above.

Additional Information

For more information, see LPS-73759.

Was this article helpful?
0 out of 0 found this helpful