Scheduled release and multi-version: automated management of content workflows
The core challenge of content management lies in coordinating the rhythm of creation, review, and publishing. The Anqi content management system allows editors to set the release time of articles in advance through the time factor-scheduled publishing feature. The system will automatically change the status from \preview=trueThe ability to recover deleted items from the recycle bin and build a smooth content workflow, avoiding delays in publishing due to waiting for approvals or time zone differences.
The complete lifecycle of document status.
There are four distinct states of documents in the system: formal documents, drafts, scheduled for release, and recycling bin. A newly created article defaults to draft status, visible only to the author and administrators with the appropriate permissions; when the content is completed and ready to enter the publishing queue, it can be marked as scheduled for release; after reaching the set release time, the system automatically converts it to a formal document, visible to front-end users; if an administrator deletes a formal document proactively, it will not disappear physically immediately, but be moved to the recycling bin, retaining the possibility of recovery.
This state machine design ensures full traceability of content from creation to retirement. Each state transition records the operator and timestamp, facilitating audit of who made what decisions at what time. For scenarios requiring multi-level review, state types can be extended through custom workflow plugins, but the core four states remain unchanged, serving as the system's basic semantics.
Timing publishing configuration and execution
The core of the timed release feature is the time factor setting. In the article editing page, in addition to the conventional title, content, and category fields, there is also an option for 'release time'. If left blank, the article will be published immediately after saving (provided the status is set to pending release); if a future time is specified, the system will add the article to the scheduling queue, and the status change will be triggered automatically after reaching the target time.
The scheduler checks the queue for scheduled releases with minute-level precision. For multi-site deployments across different time zones, each site uses its own time zone settings to independently calculate the release time. If the server misses the scheduled time due to maintenance, the system will immediately reschedule all pending content after restart to ensure that content is not permanently delayed due to technical failures. For time-sensitive news content, it is recommended to set the release time a few minutes later than the actual expectation to leave room for unexpected situations.
The collaborative value of draft previews
Before the content is officially released, team members need to preview the final effect to confirm that the layout, images, and links are correct. The draft preview feature is implemented through URL parameters.preview=trueImplementation: Attach this parameter to the access address of the draft page, and the system will bypass the permission check to directly render the content, even if the visitor does not have a backend login status.
The preview link is suitable for sharing with designers, legal audit personnel, or customer representatives so that they can participate in the review without having a backend account. To prevent the preview link from being indexed by search engines, the system will add a meta tag to the preview page.noindexInstructions, while the robots.txt rules will also exclude the followingpreview=trueURL with parameters. The main difference between the preview mode page and the officially released page is that a reminder bar will be displayed at the top to indicate that it is in preview mode, to prevent it from being mistakenly considered as online content.
The protection mechanism against accidental deletion in the recycle bin
Deleting an official document is not a physical erase, but to move it to the recycle bin and mark the deletion time and operator. The documents in the recycle bin still retain complete metadata and content, and administrators can view or restore them to any original column at any time. This design effectively prevents data loss caused by accidental operations or malicious deletions.
The items in the recycle bin will not be permanently retained, the system provides two cleaning strategies: automatic expiration based on time (default 30 days) or manual clearing. One week before the automatic expiration, the system will send a reminder email to the administrator, listing the documents that will be permanently deleted. If you need to completely destroy sensitive content, you can perform a forced deletion in the recycle bin, at which point the data will be physically removed from the database and cannot be recovered. It is recommended to evaluate the team's fault tolerance window period before enabling automatic cleaning, balancing storage costs and security needs.
Common questions
What are the reasons for the failure of scheduled publications?
The most common reason is that the server clock is not synchronized. If the operating system time is inconsistent with the CMS configured time zone, the scheduler may calculate the wrong trigger time. Secondly, if the article content contains unpassed review rules (such as triggering sensitive word filtering), the system will block publication and record the failure reason. You can check the detailed error information in the background "Publish Log" and set the publication time again.
Can the draft preview link be set with an expiration date?
The preview link of the current version does not have a built-in expiration mechanism, anyone who knows the URL can access the document while it is in draft or pending publication status. If you need to limit the access window, it is recommended to clearly inform the recipient of the expiration time when sharing the preview link, and change the document status to another non-preview-friendly status (such as temporarily moving it to the recycle bin and then restoring it) after the expiration. Future versions plan to support preview tokens with signatures and expiration times to further enhance security.
What to do if the recycle bin takes up storage space?
Documents in the recycle bin occupy the same storage space as formal documents. If not cleaned up for a long time, especially pages containing a large number of images or attachments, it may cause the database volume to expand. It is recommended to review the recycle bin regularly and perform batch clearing for content confirmed not to be restored. For documents containing attachments, the system will synchronize clean up the associated file resources when physically deleted to avoid generating orphan files. If the storage pressure is great, you can shorten the threshold for automatic expiration days, or prefer plain text format when importing external content instead of embedded heavy media.