Again, static *OR* object-referencing calls? Blue or red pill?
Signed-off-by: Roland Häder <roland@mxchange.org>
This commit is contained in:
parent
b54c22666c
commit
2eb3727542
|
@ -362,14 +362,14 @@ function cron_clear_cache(&$a) {
|
||||||
clear_cache();
|
clear_cache();
|
||||||
|
|
||||||
// clear cache for photos
|
// clear cache for photos
|
||||||
clear_cache(App::get_basepath(), App::get_basepath()."/photo");
|
clear_cache($a->get_basepath(), $a->get_basepath()."/photo");
|
||||||
|
|
||||||
// clear smarty cache
|
// clear smarty cache
|
||||||
clear_cache(App::get_basepath()."/view/smarty3/compiled", App::get_basepath()."/view/smarty3/compiled");
|
clear_cache($a->get_basepath()."/view/smarty3/compiled", $a->get_basepath()."/view/smarty3/compiled");
|
||||||
|
|
||||||
// clear cache for image proxy
|
// clear cache for image proxy
|
||||||
if (!get_config("system", "proxy_disabled")) {
|
if (!get_config("system", "proxy_disabled")) {
|
||||||
clear_cache(App::get_basepath(), App::get_basepath()."/proxy");
|
clear_cache($a->get_basepath(), $a->get_basepath()."/proxy");
|
||||||
|
|
||||||
$cachetime = get_config('system','proxy_cache_time');
|
$cachetime = get_config('system','proxy_cache_time');
|
||||||
if (!$cachetime) $cachetime = PROXY_DEFAULT_TIME;
|
if (!$cachetime) $cachetime = PROXY_DEFAULT_TIME;
|
||||||
|
|
|
@ -267,7 +267,7 @@ function proxy_url($url, $writemode = false, $size = '') {
|
||||||
$url = html_entity_decode($url, ENT_NOQUOTES, 'utf-8');
|
$url = html_entity_decode($url, ENT_NOQUOTES, 'utf-8');
|
||||||
|
|
||||||
// Creating a sub directory to reduce the amount of files in the cache directory
|
// Creating a sub directory to reduce the amount of files in the cache directory
|
||||||
$basepath = App::get_basepath() . '/proxy';
|
$basepath = $a->get_basepath() . '/proxy';
|
||||||
|
|
||||||
$shortpath = hash('md5', $url);
|
$shortpath = hash('md5', $url);
|
||||||
$longpath = substr($shortpath, 0, 2);
|
$longpath = substr($shortpath, 0, 2);
|
||||||
|
|
Loading…
Reference in a new issue