function varnish_purge_all_pages in Varnish 6
Same name and namespace in other branches
- 8 varnish.module \varnish_purge_all_pages()
- 5 varnish.module \varnish_purge_all_pages()
- 7 varnish.module \varnish_purge_all_pages()
Helper function to quickly flush all caches for the current site.
7 calls to varnish_purge_all_pages()
- VarnishAdminTestCase::testCacheClearButton in ./
varnish.test - Test the clear cache button in the admin UI.
- VarnishCacheInvalidationCase::setUp in ./
varnish.test - Generates a random database prefix, runs the install scripts on the prefixed database and enable the specified modules. After installation many caches are flushed and the internal browser is setup so that the page requests will run on the new prefix.…
- VarnishCacheInvalidationCase::testNodeCacheExpiration in ./
varnish.test - Test that makes sure the Node Cache Expiration works as intended.
- varnish_comment in ./
varnish.module - Implementation of hook_comment()
- varnish_flush_caches in ./
varnish.module - Implementation of hook_flush_caches()
2 string references to 'varnish_purge_all_pages'
- varnish_drush_command in ./
varnish.drush.inc - Implementation of hook_drush_command().
- varnish_form_alter in ./
varnish.module - Implementation of hook_form_alter()
File
- ./
varnish.module, line 197 - varnish.module Provide drupal hooks for integration with the Varnish control layer.
Code
function varnish_purge_all_pages() {
$path = base_path();
$host = _varnish_get_host();
varnish_purge($host, $path);
}