Skip to content
  • Solutions
    By Role
    • For Developers
    • For Content Managers
    • For Agencies
    • For IT Admins
    • For Web Hosters
    • For Developers
    • For Content Managers
    • For Agencies
    • For IT Admins
    • For Web Hosters
    By Infrastructure
    • Overview
    • AWS
    • Microsoft Azure
    • Alibaba Cloud
    • Google Cloud Platform
    • Vultr
    • Overview
    • AWS
    • Microsoft Azure
    • Alibaba Cloud
    • Google Cloud Platform
    • Vultr
    • Digital Ocean
    • Linode
    • Upcloud
    • Oracle
    • OVH
    • Digital Ocean
    • Linode
    • Upcloud
    • Oracle
    • OVH
  • Product
    • Plesk Features
    • Plesk Editions
    • What’s new
    • Pricing
    • Roadmap
    • Lifecycle Policy
    • Extensions Catalogue
  • Pricing
  • Extensions
    Featured Extensions
    • SocialBee
    • WP Toolkit
    • Sitejet Builder for Plesk
    • SEO Toolkit
    • Joomla! Toolkit
    • Premium Email
    • Email Security
    • SocialBee
    • WP Toolkit
    • Sitejet Builder for Plesk
    • SEO Toolkit
    • Joomla! Toolkit
    • Premium Email
    • Email Security
    Bundles and packs:
    • Business and Collaboration Edition
    • WP pack
    • Hosting pack
    • Power pack
    • Language pack
    • Business and Collaboration Edition
    • WP pack
    • Hosting pack
    • Power pack
    • Language pack

    See all Extensions

  • For Partners
    • Plesk Contributor Program
    • Plesk Partner Program
    • Affiliate program
    • Plesk University
  • Help Center
    • Documentation
    • Professional Services
    • Support
    • Contact Us
    • Wiki
    • Forum
  • Plesk 360 login
  • Free Trial
  • Pricing
  • Solutions
    • By Role
      • For Developers
      • For Content Managers
      • For Agencies
      • For IT Admins
      • For Web Hosters
    • By Infrastructure
      • Overview
      • Plesk on Amazon Web Services (AWS & Lightsail)
      • Microsoft Azure
      • Alibaba Cloud
      • Google Cloud Platform
      • Vultr
      • DigitalOcean
      • Linode
      • UpCloud
      • Oracle
      • OVH
  • Products
  • Pricing
  • Extensions
    • Featured Extensions
      • SocialBee
      • WP Toolkit
      • Sitejet Builder for Plesk
      • SEO Toolkit
      • Joomla! Toolkit
      • Premium Email
      • Email Security
    • Bundles and packs:
      • Business and Collaboration Edition
      • WP pack
      • Hosting pack
      • Power pack
      • Language pack
      • See all Extensions
  • For Partners
    • Plesk Contributor Program
    • Plesk Partner Program
    • Affiliate Program
    • Plesk University
  • Help Center
    • Documentation
    • Professional Services
    • Support
    • Contact Us
    • Wiki
    • Forum
  • Plesk 360 login
  • Free Trial
  • Pricing
  • Solutions
    • By Role
      • For Developers
      • For Content Managers
      • For Agencies
      • For IT Admins
      • For Web Hosters
    • By Infrastructure
      • Overview
      • Plesk on Amazon Web Services (AWS & Lightsail)
      • Microsoft Azure
      • Alibaba Cloud
      • Google Cloud Platform
      • Vultr
      • DigitalOcean
      • Linode
      • UpCloud
      • Oracle
      • OVH
  • Products
  • Pricing
  • Extensions
    • Featured Extensions
      • SocialBee
      • WP Toolkit
      • Sitejet Builder for Plesk
      • SEO Toolkit
      • Joomla! Toolkit
      • Premium Email
      • Email Security
    • Bundles and packs:
      • Business and Collaboration Edition
      • WP pack
      • Hosting pack
      • Power pack
      • Language pack
      • See all Extensions
  • For Partners
    • Plesk Contributor Program
    • Plesk Partner Program
    • Affiliate Program
    • Plesk University
  • Help Center
    • Documentation
    • Professional Services
    • Support
    • Contact Us
    • Wiki
    • Forum
  • Plesk 360 login
  • Free Trial
Plesk 360 login
Free Trial

Knowledge Base

Enabling nginx caching

 
administrator guideapache and nginx web servers linuxweb serverscachecaching

Enabling nginx caching allows the nginx proxy server to cache certain
website dynamic content. The cached data is stored for a short time
(usually no more than several seconds). This can help speed up the
website load time and reduce server load.

Enabling nginx caching is recommended only for websites with a specific
profile (for example, popular blogs or news websites):

  • High traffic.
  • The content is updated every few seconds.

Enabling nginx caching can be useless or even harmful for websites with
the following profile:

  • Moderate or low traffic.
  • The content is updated less often than every few seconds.
  • Personalized content is used (for example, the visitor’s geographical
    location or the contents of their shopping cart).

You can enable nginx caching for individual domains or hosting plans.

To enable nginx caching for a hosting plan:

  1. Go to Service Plans.
  2. On the “Hosting Plans” tab, either click Add a Plan to create a
    new plan or click the name of an existing plan to edit it.
  3. Go to the “Web Server” tab.
  4. In the “nginx settings” section, select the “Enable nginx caching”
    checkbox.
  5. (Optional) You can customize nginx caching settings. If you are not
    familiar with nginx caching, we recommend that you keep the default
    settings. Misconfiguring these settings can hinder the website and
    server performance.
  6. Click OK (or Update & Sync if editing an existing plan).

Now, every time you create a new subscription based on this hosting
plan, nginx caching will be automatically enabled on that subscription’s
domains and subdomains. Existing subscriptions based on this hosting
plan will not be affected.

To learn how to enable nginx caching for a domain, click
here.

Customizing the default nginx caching settings

You can set the default values for a number of nginx caching settings
(for example, cache size, cache timeout, and so on) by editing the
panel.ini file. The customized values will be applied to
newly created hosting plans, domains, and subdomains, and will not
affect those that already exist.

See below for the list of nginx caching settings that you can customize
via the panel.ini file.

[webserver]
; path where to store cache
nginxCacheDir = /var/cache/nginx
; default values
nginxCacheEnabled = off
nginxCacheSize = 62914560
nginxCacheTimeout = 5
nginxCacheKey = $scheme$request_method$host$request_uri
nginxCacheCookies = ""
nginxCacheBypassLocations = ""
nginxCacheBypassHeaderNocache = on
nginxCacheBypassHeaderAuth = on
nginxCacheBypassGetNocache = on
nginxCacheUseStale5xx = on
nginxCacheUseStale4xx = off
nginxCacheUseStaleUpdating = on
; maximum values
nginxCacheSizeMax = 1099511627776
nginxCacheTimeoutMax = 3153600000
Tweet
Share
Share
Email
0 Shares
Read the full article
Related Posts

NGINX Configuration Guide

Read More »

Web Server Security – Beginner’s Guide

Read More »

Top Web Servers For Linux And Windows

Read More »
Knowledge Base

Optimizing Apache Web Server – Setting Up the Apache Restart Interval

Read More »

IIS Web Server Settings – Directory Security Settings

Read More »

IIS Web Server Settings – Common Settings

Read More »

Apache and Nginx Configuration Files

Read More »

Hosting Wiki

  • Server Redundancy
  • CacheFly
  • Caching
  • Bare Metal Server
  • Oracle VM Server
  • Server Virtualization Software
  • Windows Server
  • Linux
  • Subdomain
  • Domain
  • Hosting Control Panel
  • NGINX
  • Apache
  • Web Server
  • DNS Server
  • Colocation Hosting
  • Reseller Hosting
  • Cloud Hosting
  • VPS Hosting
  • Dedicated Hosting
  • Shared Hosting
  • Free Hosting
  • Managed Hosting
X-twitter Linkedin Youtube Reddit Github
  • Product
  • Login
  • Pricing
  • Editions
  • For Partners
  • Partner Program
  • Contributor Program
  • Affiliate Program
  • Plesk University
  • Company
  • Blog
  • Careers
  • Events
  • About Plesk
  • Our Brand
  • Resources
  • User and Admin guides
  • Help Center
  • Migrate to Plesk
  • Contact Us
  • Hosting Wiki
  • Forum
  • Legal
  • Legal
  • Privacy Policy
  • Imprint

© 2025 WebPros International GmbH

Part of the WebPros®  Family