dbXapp
2.0
RAD, CMS, Module und Runtime-IDE fuer dbXapp
Toggle main menu visibility
Loading...
Searching...
No Matches
dbxPageCache.class.php
Go to the documentation of this file.
1
<?php
2
namespace
dbx\dbxAdmin;
3
4
class
dbxPageCache
{
5
6
private
function
tpl() {
7
return
dbx
()->get_system_obj(
'dbxTPL'
);
8
}
9
10
private
function
load_cache_classes():
void
{
11
dbx
()->load_content_cache_classes();
12
}
13
14
public
function
run
(): string {
15
$this->load_cache_classes();
16
17
$run2 =
dbx
()->get_modul_var(
'dbx_run2'
,
'show'
,
'parameter'
);
18
$msg =
''
;
19
20
if
($run2 ===
'flush'
) {
21
$stats =
\dbx\dbxContent\dbxContentPageCache::invalidateAll
();
22
$msg = $this->tpl()->get_tpl(
'dbx|alert-success'
, array(
23
'msg'
=>
'dbxContent-Ausgabe-Cache geleert: '
24
. (
int
)($stats[
'content'
] ?? 0) .
' Datei(en) entfernt.'
25
));
26
}
27
28
$stats =
\dbx\dbxContent\dbxContentPageCache::cacheStats
();
29
30
return
$this->tpl()->get_tpl(
'dbxAdmin|page-cache-admin'
, array_merge(array(
31
'msg'
=> $msg,
32
'flush_url'
=>
'?dbx_modul=dbxAdmin&dbx_run1=cache&dbx_run2=flush'
,
33
'content_count'
=> (
int
)($stats[
'content'
] ?? 0),
34
'cache_dir'
=> (
string
)($stats[
'base_dir'
] ??
''
),
35
),
dbx
()->get_include_obj(
'dbxAdminHelp'
,
'dbxAdmin'
)->vars(
'cache'
)));
36
}
37
}
dbx\dbxAdmin\dbxPageCache
Definition
dbxPageCache.class.php:4
dbx\dbxAdmin\dbxPageCache\run
run()
Definition
dbxPageCache.class.php:14
dbx\dbxContent\dbxContentPageCache\invalidateAll
static invalidateAll()
Definition
dbxContentPageCache.class.php:372
dbx\dbxContent\dbxContentPageCache\cacheStats
static cacheStats()
Definition
dbxContentPageCache.class.php:414
dbx
DBX schema administration.
dbx
modules
dbxAdmin
include
dbxPageCache.class.php
Generated by
1.17.0