mirror of
https://github.com/danpros/htmly.git
synced 2026-04-19 03:56:21 +05:30
17 lines
No EOL
338 B
PHP
17 lines
No EOL
338 B
PHP
<?php if (!defined('HTMLY')) die('HTMLy'); ?>
|
|
<?php
|
|
|
|
$files = array();
|
|
$draft = array();
|
|
$files = glob('content/*/blog/*.md', GLOB_NOSORT);
|
|
$draft = glob('content/*/draft/*.md', GLOB_NOSORT);
|
|
|
|
rebuilt_cache('all');
|
|
|
|
foreach (glob('cache/page/*.cache', GLOB_NOSORT) as $file) {
|
|
unlink($file);
|
|
}
|
|
|
|
echo 'All cache has been deleted!';
|
|
|
|
?>
|