', '' ); ?>

:   '.__('writable', 'wp-asset-clean-up').''; } ?>

. Reason being that specific CSS/JS files had to be altered and they are retrieved faster from the caching directory, rather than altering then "on the fly" on every page load. Read more

: , of which are CSS/JS assets,

'; ?>

The following list prints each directory (local path) and its size. Only the ones marked with array('class' => array(), 'style' => array()))); ?> have CSS/JS files there. The other unmarked ones contain .json (for reference purposes), index.php or .htaccess file types.

'; foreach ($storageStats['dirs_files_sizes'] as $localDirPath => $localDirFileSizes) { $localDirPath = trim($localDirPath); $totalDirSize = array_sum($localDirFileSizes); $cssJsDirMarkerOutput = ''; if (in_array($localDirPath, $storageStats['dirs_css_js'])) { $cssJsDirMarkerOutput = wp_kses($cssJsDirMarker, array('span' => array('class' => array(), 'style' => array()))); } $rowStyle = ''; if ($cssJsDirMarkerOutput) { $rowStyle = 'background: rgba(0,0,0,.07); padding: 4px; display: inline;'; } echo '
  • '.esc_html($localDirPath).': '.\WpAssetCleanUp\Misc::formatBytes($totalDirSize).' '.$cssJsDirMarkerOutput.'
  • '; } echo ''; ?>

    /uploads/asset-cleanup/'); ?>

    wp-config.php', '/* That\'s all, stop editing! Happy blogging. */' ); ?>

    define('WPACU_CACHE_DIR', '/uploads/asset-cleanup/');

    '.WP_CONTENT_DIR.'/' ); ?> which is the WordPress content directory.

    In case you experience timeout errors, blank screens, 500 internal server errors and so on, it's a good idea to check the PHP error logs (they are usually activated in your PHP.ini configuration) for more information about the reason behind any issues you might have. The error log file (if any set), it meant to record PHP errors (either from Asset CleanUp or any other active plugin/theme, etc.).

    • Log PHP Errors Status:
    • Log PHP Errors Location: / : array('style' => array(), 'class' => array()))); ?>  

    There are situations when you might want to access a certain page as if is deactivated or you wish to access the page with only a part of the plugin's settings (without going through the standard deactivation and re-activation process which takes time). To do that, you can use the following query strings:

     * only .json extension allowed

    Note: Make sure to properly test the pages of your website after you do the import to be sure the changes from the location you performed the export (e.g. staging) will work just as fine on the current server (e.g. live). The CSS/JS caching will be rebuilt after you're done with the import in case Minify/Combine CSS/JS is used.