With this module enabled and the following lines in setting php:

...
// Add Varnish as the page cache handler.
$conf['cache_backends'] = array('sites/all/modules/varnish/varnish.cache.inc');
$conf['cache_class_cache_page'] = 'VarnishCache';
// Drupal 7 does not cache pages when we invoke hooks during bootstrap. This needs
// to be disabled.
$conf['page_cache_invoke_hooks'] = FALSE;

the cache is not cleared completely. I think that the apc cache doesn't get cleared because I have to hit "Cache cleare all" then restart apache and than I get a fresh page content.
The varnish cache is cleared alright but if I modify a tpl file or even settings.php for that site, changes are not visible until I restart the apache server.

This is not the normal behavior with drupal normal cache system. After I press "Cache cleare all" all changes are visible right away.

I set this to critical because it affects the core functionality of Drupal and makes cache clear all unusable - so how can we change anything without restarting the apache?!

Comments

SilviuChingaru’s picture

Title: Cache is not cleared on "Cache clear all" » APC cache is not cleared on "Cache clear all"
SilviuChingaru’s picture

By the way, I don't have APC module for drupal installed or any other cache module. Only varnish module...

patcon’s picture

You didn't say, but I believe this is because you're trying to clear from the Drush CLI, which can't clear APC's cache. You must clear the cache from the web UI.

Related: #1278232: Provide documentation on clearing the cache when running cache clear in CLI (Drush) mode.

reubenavery’s picture

Issue summary: View changes
Status: Active » Closed (duplicate)

This issue has nothing to do with Varnish.

rintoug’s picture

If you are using drupal7, you can try with apc admin module in drupal https://www.drupal.org/project/apc_admin. This module do embed the APC handling php script and you can view the statistics and options to clear the cache as well.

Apache restart helps to clear the APC cache, anyway its not a good practice though.