User Tools

Site Tools


gen:enable_varnish

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
gen:enable_varnish [2025/09/16 10:02] kirtisinghgen:enable_varnish [2025/09/16 10:07] (current) kirtisingh
Line 34: Line 34:
 With WordPress you can easily use Varnish and enable auto-purging of content (when it changes), by using the [[https://wordpress.org/plugins/varnish-http-purge/|Proxy Cache Purge]] .After installing the plugin. kindly make sure that you that this plugin points to varnish server at 172.16.26.1 .  With WordPress you can easily use Varnish and enable auto-purging of content (when it changes), by using the [[https://wordpress.org/plugins/varnish-http-purge/|Proxy Cache Purge]] .After installing the plugin. kindly make sure that you that this plugin points to varnish server at 172.16.26.1 . 
  
-This plugin might not work for the website root i.e. / , when the home/front page of the WordPress website is made by collection of elements of other pages/blocks. In order to have seemless cache purge for the root or / page, we advise that you append the following block of code in the functions.php file of your WordPress theme . If the functions.php file does not exist, please create one.+Now if the page you changed/added is also referred/shown on the home page, Proxy Cache Purge plugin might not flush the cache for the website root i.e. / . In order to have seemless cache purge for the root or / page, we advise that you append the following block of code to the functions.php file of your WordPress theme . If the functions.php file does not exist, please create one.
  
-<code>+<code php>
 /* action w.r.t. save post in order to flush / URL - start */ /* action w.r.t. save post in order to flush / URL - start */
  
gen/enable_varnish.1758016936.txt.gz · Last modified: 2025/09/16 10:02 by kirtisingh

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki