Skip to main content

Options for page caching regarding twitter (x) widgets

Comments

1 comment

  • cPRex Jurassic Moderator

    Hey there!  The best option in cPanel would likely be to install Nginx, which lets you have a bit more control over the caching options on the system.  Once Nginx is installed you'll have the /etc/nginx/ea-nginx/cache.json file on the system with the following section:

       "proxy_cache_valid" : {
          "200 301 302" : "60m",
          "404" : "1m"

    This tells the system how long to cache certain things based on the response type.  You can also setup a more general cache for all files with the proxy_cache_valid field.  More details on these and other settings can be found here:

    https://docs.nginx.com/nginx/admin-guide/content-cache/content-caching/#limit-or-disable-caching

    but I would say that is likely the best choice for speed and caching on a cPanel box.

    0

Please sign in to leave a comment.