MODX 2.8.4 auto date/time unpublishing of docs

Hello,

is there a way to see how is the mechanism of automatically unpublish a resource with expire date?

Is there a special systemevent to extend this process?

Thank you

Bye
Chris

It works by storing the next timestamp something needs to be (un)published in a cache file (in core/cache/auto_publish), and checking that timestamp during requests to see if it needs to take action.

The OnResourceAutoPublish event is fired if anything was automatically (un)published. That has access to a $results array.

1 Like

great. That’s it.

Thank you very much, Mark.

I have an article coming up on the MODX blog explaining this in some detail. It’s a really interesting process. I’m not sure when it will be published.

sounds good, Bob.

Did you mean at Exploring MODX | The Official MODX Blog ?

Yes, that’s the MODX blog.

This topic was automatically closed 2 days after discussion ended and a solution was marked. New replies are no longer allowed. You can open a new topic by clicking the link icon below the original post or solution and selecting “+ New Topic”.