PHP code example of alpshq / statamic-cache-evader
1. Go to this page and download the library: Download alpshq/statamic-cache-evader 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/ */
alpshq / statamic-cache-evader example snippets
html
<!-- Your template -->
{{ cache_evader_partial:user login_url="/login" }}
html
<span>
Welcome {{ current_user:email }}!
</span>
<a href="{{ logout_url }}">Not {{ current_user:email }}?</a>
php artisan vendor:publish --tag=cache-evader-config