Answers.Body: <p>A big part of the pages in civi are not public, so as you might serve different pages to every user, they can't be cached.</p>
  
  <p>But I think your problem is elsewhere, if you are "alone" on your admin pages, it should not be slow, even without varnish</p>
  
  <p>Have a look at the <a href="https://civicrm.org/demo" rel="nofollow noreferrer">demo pages</a>, are you experiencing the same speed on your server? if not, there is something wrong in your install, and I'd fix that, so you do not need varnish</p>
  
  <p>X+</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-05-23T17:22:53.587Z
Answers.Text: Thank you for the response.  The demo site works well, I'd be very happy if my site was the same.  Now to figure out what is wrong with my install... I'm using dreampress for hosting, which is set up to use varnish.  I'll check performance with it turned off.  Is there a way to serve cached pages for unauthenticated users when civi is installed?
Answers.UserDisplayName: HungryHippo
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-06-22T21:27:14.900Z
Answers.Text: Hi Hippo - I have a WP front-end w/Civi installed (it looks like a plugin) and I used FastestCache but I think it is probably similar to Varnish - it just caches the WP pages and not Civicrm.  CiviCRM has its own caching system, including caching complied Smarty templates.  But FastestCache doesn't try to cache Civicrm.  Turn off the Varnish plugin and try to access Civicrm - it may be you have other trouble, e.g., if you don't have URL rewriting enabled.
Answers.UserDisplayName: Lesley Evensen
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-05-23T08:05:31.903Z
Answers.LastActivityDate: 2017-05-23T08:05:31.903Z
Answers.UserDisplayName: Xavier
Body: <p>When I activate CiviCRM I get the following notices regarding varnish status:</p>
  <blockquote>
  <p>Varnish is running but cannot cache.</p>
  <p>A plugin or theme is setting a PHPSESSID cookie on every pageload. This makes Varnish not deliver cached pages.</p>
  <p>Something is setting the header Cache-Control to &quot;no-cache&quot; which means visitors will never get cached pages.</p>
  <p>Something is setting the header Pragma to &quot;no-cache&quot; which means visitors will never get cached pages.</p>
  </blockquote>
  <p>The site is unusable when civi is activated, I can hardly navigate the civi admin pages - I get 'page not found' errors about half the time.</p>
  <p>Is there a way to get CiviCRM to play with varnish?</p>
  
Tags: <cache>
Title: How do I get CiviCRM working with varnish on wordpress?
ThreadText: # How do I get CiviCRM working with varnish on wordpress?
  
  (Asked by: username_0 on 2017-05-22)
  
  When I activate CiviCRM I get the following notices regarding varnish status:
  
  > Varnish is running but cannot cache.
  >
  > A plugin or theme is setting a PHPSESSID cookie on every pageload. This makes Varnish not deliver cached pages.
  >
  > Something is setting the header Cache-Control to "no-cache" which means visitors will never get cached pages.
  >
  > Something is setting the header Pragma to "no-cache" which means visitors will never get cached pages.
  
  The site is unusable when civi is activated, I can hardly navigate the civi admin pages - I get 'page not found' errors about half the time.
  
  Is there a way to get CiviCRM to play with varnish?
  
  **Tags:** cache
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2017-05-23. Score: 2
  
  A big part of the pages in civi are not public, so as you might serve different pages to every user, they can't be cached.
  
  But I think your problem is elsewhere, if you are "alone" on your admin pages, it should not be slow, even without varnish
  
  Have a look at the [demo pages](https://civicrm.org/demo), are you experiencing the same speed on your server? if not, there is something wrong in your install, and I'd fix that, so you do not need varnish
  
  X+
  
  > **Comments:**
  > **username_0**: Thank you for the response.  The demo site works well, I'd be very happy if my site was the same.  Now to figure out what is wrong with my install... I'm using dreampress for hosting, which is set up to use varnish.  I'll check performance with it turned off.  Is there a way to serve cached pages for unauthenticated users when civi is installed?  
  > **username_2**: Hi Hippo - I have a WP front-end w/Civi installed (it looks like a plugin) and I used FastestCache but I think it is probably similar to Varnish - it just caches the WP pages and not Civicrm.  CiviCRM has its own caching system, including caching complied Smarty templates.  But FastestCache doesn't try to cache Civicrm.  Turn off the Varnish plugin and try to access Civicrm - it may be you have other trouble, e.g., if you don't have URL rewriting enabled.  
  
  ---
  
  