Legacy Knowledge Base
Published Jul. 2, 2025

Important pointers and configurations for the scheduled web content

Written By

Thanga Meena

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

Legacy Article

You are viewing an article from our legacy "FastTrack" publication program, made available for informational purposes. Articles in this program were published without a requirement for independent editing or verification and are provided"as is" without guarantee.

Before using any information from this article, independently verify its suitability for your situation and project.

Issue

  • The web content is not published based on the scheduled date and time. 
  • Concern about the behavior to check how it works
  • Steps to reproduce:
    • Started the DXP 7.0 vanilla bundle
    • Create new web content by providing the title, fill the content field
    • Under the schedule session, fill the display and expiration date and time.
    • Save and publish it
    • Add the scheduled content on the page
    • Observed behavior: Everything works fine till here. In the page, it shows the published web content for the admin user with the message like "Web content S1 is scheduled and will be displayed on XX/XX/XX 5:45 PM." in the de-active state. As a guest user, this content is not visible. 
    • Test result: When checking at the scheduled time, still, this content is not getting displayed or not visible

Environment

  • Liferay DXP 7.0 

Resolution

  • For testing the behavior how it works with the scheduled content, increase the log level [Navigate to Control panel/ Configuration/ Server administration/ Log levels/ Add category]  by adding the below category to observe the process of it.
    com.liferay.journal.service.impl.JournalArticleLocalServiceImpl
    • After setting the log level, the debug info looks like below example log:
      2020-04-30 14:11:45.305 DEBUG [http-nio-8080-exec-6][JournalArticleLocalServiceImpl:7404] Transforming 48524 1.0 en_US
      2020-04-30 14:11:49.986 DEBUG [liferay/scheduler_dispatch-2][JournalArticleLocalServiceImpl:6577] Expiring articles with expiration date less than or equal to Thu Apr 30 14:12:49 GMT 2020 and status 0
      2020-04-30 14:11:49.997 DEBUG [liferay/scheduler_dispatch-2][JournalArticleLocalServiceImpl:6600] Sending review notification for articles with reviewDate between Thu Apr 30 14:10:49 GMT 2020 and Thu Apr 30 14:11:49 GMT 2020
      2020-04-30 14:11:49.998 DEBUG [liferay/scheduler_dispatch-2][JournalArticleLocalServiceImpl:6512] Publishing articles with display date less than Thu Apr 30 14:11:49 GMT 2020 and status 7
      2020-04-30 14:12:12.241 DEBUG [http-nio-8080-exec-4][JournalArticleLocalServiceImpl:7404] Transforming 48524 1.0 en_US
      2020-04-30 14:12:49.985 DEBUG [liferay/scheduler_dispatch-3][JournalArticleLocalServiceImpl:6577] Expiring articles with expiration date less than or equal to Thu Apr 30 14:13:49 GMT 2020 and status 0
      2020-04-30 14:12:49.998 DEBUG [liferay/scheduler_dispatch-3][JournalArticleLocalServiceImpl:6600] Sending review notification for articles with reviewDate between Thu Apr 30 14:11:49 GMT 2020 and Thu Apr 30 14:12:49 GMT 2020
      2020-04-30 14:12:49.999 DEBUG [liferay/scheduler_dispatch-3][JournalArticleLocalServiceImpl:6512] Publishing articles with display date less than Thu Apr 30 14:12:49 GMT 2020 and status 7
      2020-04-30 14:13:00.442 DEBUG [http-nio-8080-exec-6][JournalArticleLocalServiceImpl:7404] Transforming 48524 1.0 en_US
      2020-04-30 14:13:03.145 DEBUG [http-nio-8080-exec-5][JournalArticleLocalServiceImpl:7404] Transforming 48524 1.0 en_US
      2020-04-30 14:13:06.377 DEBUG [http-nio-8080-exec-4][JournalArticleLocalServiceImpl:7404] Transforming 48524 1.0 en_US
      2020-04-30 14:13:08.682 DEBUG [http-nio-8080-exec-3][JournalArticleLocalServiceImpl:7404] Transforming 48524 1.0 en_US
      2020-04-30 14:13:10.938 DEBUG [http-nio-8080-exec-2][JournalArticleLocalServiceImpl:7404] Transforming 48524 1.0 en_US
      2020-04-30 14:13:16.129 DEBUG [http-nio-8080-exec-5][JournalArticleLocalServiceImpl:7404] Transforming 48524 1.0 en_US
      2020-04-30 14:13:19.175 DEBUG [http-nio-8080-exec-4][JournalArticleLocalServiceImpl:7404] Transforming 48524 1.0 en_US
      2020-04-30 14:13:21.217 DEBUG [http-nio-8080-exec-3][JournalArticleLocalServiceImpl:7404] Transforming 48524 1.0 en_US
      2020-04-30 14:13:25.703 DEBUG [http-nio-8080-exec-6][JournalArticleLocalServiceImpl:7404] Transforming 48524 1.0 en_US
      2020-04-30 14:13:28.409 DEBUG [http-nio-8080-exec-5][JournalArticleLocalServiceImpl:7404] Transforming 48524 1.0 en_US
      2020-04-30 14:13:30.681 DEBUG [http-nio-8080-exec-4][JournalArticleLocalServiceImpl:7404] Transforming 48524 1.0 en_US2020-04-30 14:13:35.759 DEBUG [http-nio-8080-exec-3][JournalArticleLocalServiceImpl:7404] Transforming 48524 1.0 en_US
      2020-04-30 14:13:38.880 DEBUG [http-nio-8080-exec-2][JournalArticleLocalServiceImpl:7404] Transforming 48524 1.0 en_US
      2020-04-30 14:13:41.731 DEBUG [http-nio-8080-exec-6][JournalArticleLocalServiceImpl:7404] Transforming 48524 1.0 en_US
      2020-04-30 14:13:45.076 DEBUG [http-nio-8080-exec-5][JournalArticleLocalServiceImpl:7404] Transforming 48524 1.0 en_US
      2020-04-30 14:13:47.443 DEBUG [http-nio-8080-exec-4][JournalArticleLocalServiceImpl:7404] Transforming 48524 1.0 en_US
      2020-04-30 14:13:49.612 DEBUG [http-nio-8080-exec-3][JournalArticleLocalServiceImpl:7404] Transforming 48524 1.0 en_US
      2020-04-30 14:13:49.985 DEBUG [liferay/scheduler_dispatch-1][JournalArticleLocalServiceImpl:6577] Expiring articles with expiration date less than or equal to Thu Apr 30 14:14:49 GMT 2020 and status 0
      2020-04-30 14:13:49.990 DEBUG [liferay/scheduler_dispatch-1][JournalArticleLocalServiceImpl:6600] Sending review notification for articles with reviewDate between Thu Apr 30 14:12:49 GMT 2020 and Thu Apr 30 14:13:49 GMT 2020
      2020-04-30 14:13:49.990 DEBUG [liferay/scheduler_dispatch-1][JournalArticleLocalServiceImpl:6512] Publishing articles with display date less than Thu Apr 30 14:13:49 GMT 2020 and status 7
      2020-04-30 14:13:49.992 DEBUG [liferay/scheduler_dispatch-1][JournalArticleLocalServiceImpl:6537] Publishing article 48525
      2020-04-30 14:13:55.444 DEBUG [http-nio-8080-exec-6][JournalArticleLocalServiceImpl:7404] Transforming 48524 1.0 en_US2020-04-30 14:14:49.986 DEBUG [liferay/scheduler_dispatch-2][JournalArticleLocalServiceImpl:6577] Expiring articles with expiration date less than or equal to Thu Apr 30 14:15:49 GMT 2020 and status 0
      2020-04-30 14:14:49.990 DEBUG [liferay/scheduler_dispatch-2][JournalArticleLocalServiceImpl:6458] Expiring article 48525
      2020-04-30 14:14:50.018 DEBUG [liferay/scheduler_dispatch-2][JournalArticleLocalServiceImpl:6600] Sending review notification for articles with reviewDate between Thu Apr 30 14:13:49 GMT 2020 and Thu Apr 30 14:14:49 GMT 2020
      2020-04-30 14:14:50.020 DEBUG [liferay/scheduler_dispatch-2][JournalArticleLocalServiceImpl:6512] Publishing articles with display date less than Thu Apr 30 14:14:49 GMT 2020 and status 72020-04-30 14:14:59.809 DEBUG [http-nio-8080-exec-1][JournalArticleLocalServiceImpl:7404] Transforming 48524 1.0 en_US
      2020-04-30 14:15:49.986 DEBUG [liferay/scheduler_dispatch-1][JournalArticleLocalServiceImpl:6577] Expiring articles with expiration date less than or equal to Thu Apr 30 14:16:49 GMT 2020 and status 0
      2020-04-30 14:15:49.998 DEBUG [liferay/scheduler_dispatch-1][JournalArticleLocalServiceImpl:6600] Sending review notification for articles with reviewDate between Thu Apr 30 14:14:49 GMT 2020 and Thu Apr 30 14:15:49 GMT 2020
      2020-04-30 14:15:49.999 DEBUG [liferay/scheduler_dispatch-1][JournalArticleLocalServiceImpl:6512] Publishing articles with display date less than Thu Apr 30 14:15:49 GMT 2020 and status 7
  • Configuration at the portal level, 
    • As per the document, please ensure you have modified the configuration
    • For example, The below steps followed to test the behavior
      • The time zone of the server, Liferay, and the user's PC should be set correctly. 
        • Instance settings: updated the Time Zone as IST for testing purpose
        • Account settings of the user: updated the Time Zone as IST for testing purpose
      • System settings/ web content: Check interval: updated to 60000
      • System settings/ web content Administration: Check interval: updated to 1
  • Observed behavior:
    • Display time: There may be a little delay with a few seconds and the schedule web contents get displayed on the page.
    • Expired time: There is no delay here. It's expired perfectly.
    • Note: There is one slight difference in how the functionality expires and publish works. Expiration uses that 60.000 ms interval to look ahead, while publication will not. So little[few seconds] delays in publishing content can be valid, the expiration will not delay as long as the minute based check interval is smaller than the milliseconds based on.

Additional Information

Did this article resolve your issue ?

Legacy Knowledge Base