PHP code example of webandco / neos-asset-usage-cache
1. Go to this page and download the library: Download webandco/neos-asset-usage-cache 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/ */
webandco / neos-asset-usage-cache example snippets
/**
* @Flow\Inject
* @var AssetCacheService
*/
protected $assetCacheService;
....
public function reConfigureAssetCache(){
$this->assetCacheService->setRealTimeUpdate(false);
$this->assetCacheService->setCacheDisabled(false);
// eventually just flush the cache - globally
$this->assetCacheService->flush();
}