', '' ); ?>
:
'.__('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 '/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.
/?wpacu_debug
- If you are logged-in, it will print a form at the bottom of the requested page with options to view the page with certain options deactivated (e.g. do not apply any JavaScript unloading), as well as print information about all the unloaded assets./?wpacu_no_load
- On any page request if you apply this parameter, it will be like is deactivated. The plugin's menu from the top admin bar (if shown), will also get hidden./?wpacu_clean_load
- This parameter is useful if you are checking a website that has lots of CSS/JS unloaded and combined by or other performance plugin, but you want to view the page as if no optimization was applied (e.g. 20 CSS files were combined into one, but you want to see each one in the HTML source code, for debugging purposes). The difference between this option and "wpacu_no_load" is that it also attempts to prevent any optimization made by other performance plugins, not just from 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.