mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-02-06 07:04:57 +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'];
|
||||
|
||||
$ret = '';
|
||||
if(!empty($post['preview'])) {
|
||||
$cmd = 'rm -rf '.$settings->_cacheDir.'/[1-9]*';
|
||||
if(!empty($post['previewpng'])) {
|
||||
$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);
|
||||
}
|
||||
|
||||
|
|
|
@ -49,7 +49,13 @@ class SeedDMS_View_ClearCache extends SeedDMS_Theme_Style {
|
|||
$this->contentContainerStart('warning');
|
||||
?>
|
||||
<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>
|
||||
<input type="checkbox" name="js" value="1" checked> <?php printMLText('temp_jscode'); ?>
|
||||
|
|
Loading…
Reference in New Issue
Block a user