=====
I made a book, its one page.
=====
I made a book, its one page.
Ref: https://www.varnish-cache.org/docs/3.0/tutorial/esi.html http://www.w3.org/TR/esi-lang
In the template add something like:
<nocache callback="time" />| <?php | |
| /* | |
| Usage: | |
| $frag = new CWS_Fragment_Cache( 'unique-key', 3600 ); // Second param is TTL | |
| if ( !$frag->output() ) { // NOTE, testing for a return of false | |
| functions_that_do_stuff_live(); | |
| these_should_echo(); | |
| // IMPORTANT | |
| $frag->store(); | |
| // YOU CANNOT FORGET THIS. If you do, the site will break. |
| Just for a @mention of @peterwind |
| $config = { | |
| "application" => "DOMAIN.TLD", | |
| "repository" => "git@GITHOST:USERNAME/REPOSITORYNAME.git", | |
| "remoteusername" => "REMOTEUSERNAME", | |
| "cake_folder" => "/PATH/TO/CAKE", | |
| "cake_version" => "cakephp1.3", | |
| "plugin_dir" => "plugins", | |
| "servers" => { | |
| "prod" => { | |
| "server" => "APPLICATION.TLD", |
| #!/usr/bin/perl | |
| use warnings; | |
| use strict; | |
| use File::Find; | |
| use File::Spec::Functions qw(rel2abs); | |
| use File::Basename; | |
| use Cwd; | |
| my $dir = dirname(rel2abs($0)); |