PHP code example of lewiscom / presto

1. Go to this page and download the library: Download lewiscom/presto 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/ */

    

lewiscom / presto example snippets


'cacheElementQueries' => false

`cacheEnabled` => true

Presto::EVENT_BEFORE_GENERATE_CACHE_ITEM

Presto::EVENT_AFTER_GENERATE_CACHE_ITEM

Presto::EVENT_BEFORE_PURGE_CACHE

Presto::AFTER_BEFORE_PURGE_CACHE

Presto::EVENT_BEFORE_PURGE_CACHE_ALL

Presto::AFTER_BEFORE_PURGE_CACHE_ALL
bash
*/10 * * * *  php /var/www/craft presto/default/check