Discover Centmin Mod today
Register Now

Varnish cache problem

Discussion in 'Other Centmin Mod Installed software' started by reallove0810, Jan 7, 2015.

  1. reallove0810

    reallove0810 New Member

    25
    10
    3
    Jan 3, 2015
    Ratings:
    +11
    Local Time:
    4:32 AM
    1.7.9
    5.5.41
    Hello,

    I have installed varnish but only simple file html or php <?php echo "Hello World"; ?> are work.
    I try on vbulletin, wordpress, magento. But it not cache anything.
    Age=0, varnish 597109415


    Has anyone tested this out?
     
  2. eva2000

    eva2000 Administrator Staff Member

    53,488
    12,130
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,672
    Local Time:
    12:32 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    I'm going to be partially out of action due to https://community.centminmod.com/threads/downtime-when-computer-goes-up-in-smoke.2093/

    however, Varnish cache configuration is let to end user to do as Centmin Mod LEMP stack only provides the tools to install Varnish Cache via included repo. You will want to read Varnish cache documentation to understand that Varnish only caches files which do not have cookies set by default. So all web apps you listed have their own cookies set by default so need reconfiguring to cache only for guests usually. This involves configuring the Varnish default.vcl for each web app which like Nginx vhost, is web app dependent. Some of my old blog posts on the matter at Litespeed Cache vs Varnish Cache - some thoughts | vbtechsupport.com which touch on how Varnish Cache operates or can operate. The rest you need to read up on :)