PHP code example of getpop / cache-control

1. Go to this page and download the library: Download getpop/cache-control library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

getpop / cache-control example snippets


/?query=
  echo(Hello world!)

/?query=
  echo(Hello world!)|
  posts.
    title

/?query=
  echo(posts())

/?query=
  time

/?query=
  time|
  echo(Hello world!)|
  posts.
    title

/?query=
  echo(Hello world!)|
  posts.
    title<cacheControl(maxAge:0)>
 php
\PoP\Root\App::stockAndInitializeModuleClasses([([
    \PoP\CacheControl\Module::class,
]);
 bash
composer analyse