function varnish_purge_all_pages in Varnish 7
Same name and namespace in other branches
- 8 varnish.module \varnish_purge_all_pages()
- 5 varnish.module \varnish_purge_all_pages()
- 6 varnish.module \varnish_purge_all_pages()
Helper function to quickly flush all caches for the current site.
2 calls to varnish_purge_all_pages()
- VarnishCache::clear in ./
varnish.cache.inc - Expires data from the cache.
- VarnishCacheInvalidationCase::setUp in ./
varnish.test - Sets up a Drupal site for running functional and integration tests.
2 string references to 'varnish_purge_all_pages'
- varnish_drush_cache_clear in ./
varnish.drush.inc - Implements hook_drush_cache_clear().
- varnish_drush_command in ./
varnish.drush.inc - Implements hook_drush_command().
File
- ./
varnish.module, line 139 - Common functions used for the module.
Code
function varnish_purge_all_pages() {
$path = base_path();
$host = _varnish_get_host();
varnish_purge($host, $path);
}