We are using Drupal 9.3.16.

We configure the block and set the Date and Time for Publish Date and Expiry Date.

The Publish Date works and the block is shown on that Date and Time.

Expiry Date is not working and the block continues to show past the Expiry Date. Also the Date and Time information gets cleared out past the original Date and Time set.

This is additional information from the Content Manager:

"Live test did not work of unpublishing block. I think that testing while logged in as Admin gives false impression of success. Actual use wh/Admin logged out has not shown proper unpublish behavior."

Comments

msangha created an issue. See original summary.

geoanders’s picture

@msangha

I'm unable to reproduce issue on my end. I have successfully unpublished and published a block no problem.

Please provide exact steps to reproduce and any other relevant information such as caching etc...

If your using Cloudflare or any sort of caching on top of Drupal, it could interfere with it's functionality.

geoanders’s picture

Version: 2.0.0 » 2.0.x-dev
Status: Active » Postponed (maintainer needs more info)
geoanders’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)
msangha’s picture

So I am re-visiting this issue. Based on my Manager's findings on Live, I was able to replicate what he recently described on Live on my local.

The block publishing works ok, it is the unpublishing which has a problem.

When logged in as Admin I made a block unpublish in 5 minutes. At same time I opened the page incognito (anonymous). After 5 minutes passed, I refreshed the page the Admin is logged in and the block disappeared (unpublished). I refreshed the anonymous window and the block is still there.

I will troubleshoot and see if I can figure out what is causing the problem.

geoanders’s picture

It sounds like a caching issue.

Either way, I would need to know more about your setup and the levels of caching used on the site.