As an experienced CMS website operation person in security, I know that a precise understanding of the system behavior is crucial for efficient operation.About whether clicking 'Save' after modifying the system settings or content settings in the AnQiCMS backend is equivalent to 'Save and Exit' at the file level and takes effect immediately?This issue can be explored in detail from several aspects.
In the daily operation of AnQi CMS, the "Save" button on the backend usually performs the operation of writing data to the database.Whether we have updated the content of an article, adjusted the description of the category, or modified the global website name, contact information, and other information, the essence of these operations is to update the latest data to the database that the system relies on.This is an internal data update process, which is fundamentally different from directly modifying files on the server (such as modifying template files or configuration files).
Therefore, simply clicking the "Save" button is not equivalent to the file-level "Save and Exit". File-level modifications, such as directly editing the server onconfig.jsonConfiguration file (used to define ports and other core parameters), or directly modify the location at/templatethe directory..html
About the issue of "immediate effect" after modification, this requires considering the cache mechanism of AnQiCMS.In order to ensure the efficient operation and response speed of the website, Anqi CMS will widely use caching technology.This means that even if you successfully save new content or settings in the background, these changes may not be immediately reflected on the website's front end.The page accessed by front-end users may still be an old cached version.In this case, the "Update Cache" feature explicitly mentioned in the document is particularly crucial.After you complete the "SaveOnly after the cache is cleared and regenerated will the front-end page load and display the latest data.
Therefore, we can conclude that the "Save" operation in AnQiCMS backend mainly persists data to the database.It is not a file-level "save and exit", and its effective time in the foreground is affected by the system cache mechanism.For most content and setting modifications, after completing "Saveconfig.jsonThe modification requires a deeper level of service operation (such as restarting the AnQiCMS service) for the changes to take effect.
Common Questions and Answers (FAQ)
1. Why is the old name still displayed on the front end when I modified and saved the website name in the background?
This is likely because the cache on the front end of the website has not been updated.AnQiCMS to improve access speed, it will cache some page data.After you modify the settings and save, you need to go to the "Update Cache" area of the background management interface, manually clear and update the cache, or wait for the system to automatically clear the cache, the latest website name will be displayed on the front-end.
2. Does the "Save" operation in the "Safe CMS" backend modify the files on the server?
For most content (such as articles, pages, categories, system settings, contact information, etc.), the "Save" operation will only write the data to the AnQiCMS database and will not directly modify the files on the server.Only when you use the specific features provided by the background, such as the online template editing feature, will the template file on the server be directly modified.config.jsonThe modification of )usually requires direct operation on the server, rather than through the 'Save' button.
3. Changed.config.jsonIs it necessary to click the 'Update Cache' on the background after the port number in the file is set to take effect?
Changeconfig.json