Feature preview
A feasible method to leave rollback records before modifying the template is to do layered backups: template files, data, and static resources cover different recovery granularity. Anqi CMS supports backing up data along with static files, and since version 3.6.5, template backups have entered an independent background record. This article provides the three things that may be damaged by modifying the template, a layered table of backup objects, and the minimum rollback process before and after modification.
Before modifying the template, it is advisable to leave a rollback record, a feasible approach is to back up layer by layer: template files, data, and static resources, each covering different recovery granularity. AnQiCMS's backup and recovery supports backing up data along with static files, and since version v3.6.5, template backup has entered an independent record in the background. The specific action of modifying the template, the minimum set to be overwritten for rollback is the 'modified template file plus the static resources it references'; when unsure of the impact, run a full site backup including data, and the recovery will have the most complete hierarchy.
The syntax itself: an unclosed tag or a misspelled variable name, which may cause local display errors or even a full page error. The second is the output structure: the template tag determines what content block the page renders, deleting a line may cause the title, abstract, or navigation to disappear, and the page structure seen by the search engine will change accordingly. The third is the path of reference: when changing the reference of static resources, the style class may not match, and the image path may fail, making the page 'openable but ugly'. The recovery methods for the three bad methods are different: syntax and structure can be restored to the template file, and path issues may require rolling back the static resources as well.
| Layer | Coverage object | Recovery Granularity | When Must It Be Done |
|---|---|---|---|
| Template File Layer | Each Template and Fragment File | Single File Back to the Change Before | Small Changes to Only One or Two Templates |
| Static Resource Layer | Style, Script, Image Files, Etc. | Rollback Along with the Reference Path | Change Involves Resource Directory Structure Adjustment |
| Data layer | Documents, categories, configuration, and other library data | The entire site's status returns to the backup point | Changes involve content models or fields |
The backup capabilities of the background cover both data and static files, template backups have independent records since v3.6.5, one before and one after changing the template, so that an accurate return to the 'before which change' can be achieved when rolling back.
Before the change: Leave a backup and record the current version number (which can be checked in the system update records), write down which files you plan to change and which pages are expected to be affected. After the change: Verify item by item according to the type of page - home page, category list page, detail page, search page, form submission page, open one after another, and confirm that there is no collateral damage according to the intention of the change. If the verification fails, revert to the backup before the change according to the record, do not continue patching on the damaged version, as mixing two layers of changes will make it harder to identify the cause of the accident.
AnQiCMS's visual template editing supports direct modification of template code with AI assistance, the changes generated are the same as file changes, and the rollback rules are consistent: before the AI gets to work, the template layer backup should be completed first, check each change after the changes are implemented, and if not accepted, the entire layer should be rolled back and restarted.The advantage of AI editing is speed, and the risk also comes from speed - a single conversation may involve multiple files at the same time, so it is even more important to operate in the order of 'backup first, then batch, and then verify', rather than trying while changing.After making the changes, record the range of changes produced by this AI in the operation log, so that you know which section was moved next time you trace back.
Do I need to back up the entire site even if I only change one line?No need. Just fine-tune the style or copy of a single file, leave the template file layer as a backup; upgrade the coverage range when involving data models or resource directory structures.
How long after the backup is it safe to roll back?The rollback itself does not look at the time interval, but whether there have been new writings during this period: new articles, comments, and orders will be lost with the whole site rollback. Before rolling back the data layer, first confirm whether the incremental content of this window can be replayed.
How do I know the backup was successful?The available backup records that can be seen in the background recovery entry are valid; do a recovery drill before making important changes, compare the page and data status, which is more reliable than just looking at the list.
Preview
Since version 3.6.5, the Anqi CMS background file search supports double-layer wildcard, which expands the search range while also increasing the area of misfire. This article provides the process of defining the scope before batch modification: first list the hit list according to wildcard, then narrow down the matching range to the actual directory to be modified, perform single test modification and batch execution through the site-wide replacement tool, and explain what records to keep before and after the modification for rollback
Preview
Human verification shifts from selecting images to risk-based clearance, Cloudflare Turnstile provides hosted, non-interactive, and invisible three forms, the checkbox only appears when the risk is high. The token handed over to the backend does not mean security, the server still needs to verify the source, grade the form scenario, and provide a return that can be processed in case of verification failure.
Preview
Write the site description document for large models according to the llms.txt specification. The strict requirement for the format is only one: there must be a paragraph of a first-level title containing the project or site name, and the rest of the text paragraphs, lists, descriptions, and link sections are optional. This specification was proposed by Jeremy Howard and is still an open proposal for community feedback, not a formal standard. The site supports automatic generation of this document, and before going online, it is necessary to check the name section, key content list, and update time.