Join the community today
Become a Member

Varnish cache problem

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

  1. reallove0810

    reallove0810 New Member

    Jan 3, 2015
    Local Time:
    8:22 AM

    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

    May 24, 2014
    Brisbane, Australia
    Local Time:
    4:22 PM
    Nginx 1.25.x
    MariaDB 10.x
    I'm going to be partially out of action due to

    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 | which touch on how Varnish Cache operates or can operate. The rest you need to read up on :)