How to ensure independent caching for each site in the AnQiCMS multi-site environment?

siteA.comCreate a/app/siteA_comroot directory, and forsiteB.comCreate a/app/siteB_comroot directory, AnQiCMS willsiteA.comAll cached files, temporary data, and other site-related files are stored in/app/siteA_com, whilesiteB.comdata will be completely isolated in/app/siteB_comThis physical-level directory isolation fundamentally ensures the independence of cached data between different sites, avoiding cache conflicts and data confusion.

dev.anqicms.comYou can set the root directory of your site./app/dev_anqicms_comThis directory name should avoid repetition with any existing site directory names. The system will automatically manage the exclusive cache area for this site based on this directory.

In addition to the independent storage of cache data, AnQiCMS also emphasizes the isolation at the database level in multi-site management. In the interface for adding new sites, we can see the option of 'Database Name', which is usually recommended to allocate an independent database for each new site, for exampledev_anqicms_com.Although default database account information can be reused in Docker environment, each site has an independent database, further strengthening the isolation at the data level, ensuring independent management of each site's business data, content configuration, and user information. This complements the cache isolation strategy, jointly constructing the stable foundation for AnQiCMS multi-sites.

Common Questions (FAQ)

  • FAQ 1: In AnQiCMS backend, will clearing the cache delete the cache for all sites?