mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-09 13:06:14 +00:00
separate cache by png, txt, and pdf
This commit is contained in:
parent
a94eccb6cf
commit
b01dd7655c
|
@ -29,8 +29,18 @@ class SeedDMS_Controller_ClearCache extends SeedDMS_Controller_Common {
|
||||||
$post = $this->params['post'];
|
$post = $this->params['post'];
|
||||||
|
|
||||||
$ret = '';
|
$ret = '';
|
||||||
if(!empty($post['preview'])) {
|
if(!empty($post['previewpng'])) {
|
||||||
$cmd = 'rm -rf '.$settings->_cacheDir.'/[1-9]*';
|
$cmd = 'rm -rf '.$settings->_cacheDir.'/png/[1-9]*';
|
||||||
|
system($cmd, $ret);
|
||||||
|
}
|
||||||
|
|
||||||
|
if(!empty($post['previewpdf'])) {
|
||||||
|
$cmd = 'rm -rf '.$settings->_cacheDir.'/pdf/[1-9]*';
|
||||||
|
system($cmd, $ret);
|
||||||
|
}
|
||||||
|
|
||||||
|
if(!empty($post['previewtxt'])) {
|
||||||
|
$cmd = 'rm -rf '.$settings->_cacheDir.'/txt/[1-9]*';
|
||||||
system($cmd, $ret);
|
system($cmd, $ret);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -49,7 +49,13 @@ class SeedDMS_View_ClearCache extends SeedDMS_Theme_Style {
|
||||||
$this->contentContainerStart('warning');
|
$this->contentContainerStart('warning');
|
||||||
?>
|
?>
|
||||||
<p>
|
<p>
|
||||||
<input type="checkbox" name="preview" value="1" checked> <?php printMLText('preview_images_text'); ?>
|
<input type="checkbox" name="previewpng" value="1" checked> <?php printMLText('preview_images'); ?>
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
<input type="checkbox" name="previewpdf" value="1" checked> <?php printMLText('preview_pdf'); ?>
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
<input type="checkbox" name="previewtxt" value="1" checked> <?php printMLText('preview_text'); ?>
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
<input type="checkbox" name="js" value="1" checked> <?php printMLText('temp_jscode'); ?>
|
<input type="checkbox" name="js" value="1" checked> <?php printMLText('temp_jscode'); ?>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user