This is an old revision of the document!


Turning On Maintenance Mode While LiteMage Is Enabled

Problem: Some Magento site ESI blocks showing abnormal content after Magento store maintenance

Cause: User forgot to disable LiteMage during store maintenance. During maintenance, Magento site couldn't be accessible(return 503 error) while LiteMage is still working if not disabled. If any site page caches are refreshed during this period, the wrong content from backend will be cached and be served later, which caused the problem.

Solution: Flush All LiteMage Caches and rebuild the cache. Go to Magento Admin Panel and navigate to System > Cache Management, click “Flush All LiteMage Cache”.

Notes: Please disable LiteMage during store maitenance period. Or use the following alternatives if your maintenance won't affect the site content:

During maintenance, add the following rewrite rule to the beginning of your “.htaccess” file to have all requests for /index.php redirected to /errors/503.php:

RewriteCond %{REQUEST_URI} !^/(media|skin|js)/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule .* errors/503.php [L, E=Cache-Control:no-cache]

Once maintenance has been completed, either remove or comment out this rewrite rule to restore your site back to it’s normal state. In this way you can avoid the purge of LiteMage cache and the cost to rebuild cache.

  • Admin
  • Last modified: 2016/05/09 18:41
  • by Long Hu