From 0a36d3144fdc52bbd762b2dfdaa0f2b29446cec3 Mon Sep 17 00:00:00 2001 From: Ulf Gebhardt Date: Mon, 6 Jun 2016 12:14:45 +0200 Subject: [PATCH] #3 code documentation cache --- api/qq/SYS_API_TREE.php | 2 +- cache/cache.php | 46 +++++++++++++++++++++++++++--- cache/cache_css.php | 45 +++++++++++++++++++++++++++++ cache/cache_filemask.php | 41 +++++++++++++++++++++++++-- cache/cache_js.php | 45 +++++++++++++++++++++++++++++ cache/cache_scss.php | 47 +++++++++++++++++++++++++++++-- cache/qq/SYS_CACHE_CHECK.php | 14 +++++++++ cache/qq/SYS_CACHE_DELETE.php | 14 +++++++++ cache/qq/SYS_CACHE_DELETE_ALL.php | 14 +++++++++ cache/qq/SYS_CACHE_PUT.php | 14 +++++++++ 10 files changed, 273 insertions(+), 9 deletions(-) diff --git a/api/qq/SYS_API_TREE.php b/api/qq/SYS_API_TREE.php index 9e649be..64cce47 100644 --- a/api/qq/SYS_API_TREE.php +++ b/api/qq/SYS_API_TREE.php @@ -12,7 +12,7 @@ namespace SYSTEM\SQL; /** - * SQL to get System Api Tree by group + * QQ to get System Api Tree by group */ class SYS_API_TREE extends \SYSTEM\DB\QP { public static function get_class(){return \get_class();} diff --git a/cache/cache.php b/cache/cache.php index eaab588..4eecbca 100644 --- a/cache/cache.php +++ b/cache/cache.php @@ -1,6 +1,28 @@ SERVERPATH().';';} return sha1($ident); } + + /** + * Calculate URL for a list of Files + * + * @param array $files List of Files to be cached into one Cacheentry + * @return url Returns the requested Cache-URL + */ public static function url($files){ $ident = self::ident($files); if(!\SYSTEM\CACHE\cache_css::get($ident)){ diff --git a/cache/cache_filemask.php b/cache/cache_filemask.php index e9c08c9..2b402e9 100644 --- a/cache/cache_filemask.php +++ b/cache/cache_filemask.php @@ -1,14 +1,51 @@ SERVERPATH().';';} return sha1($ident); } + + /** + * Calculate URL for a list of Files + * + * @param array $files List of Files to be cached into one Cacheentry + * @return url Returns the requested Cache-URL + */ public static function url($files){ $ident = self::ident($files); if(!\SYSTEM\CACHE\cache_js::get($ident)){ diff --git a/cache/cache_scss.php b/cache/cache_scss.php index d2bfd0b..e779ef2 100644 --- a/cache/cache_scss.php +++ b/cache/cache_scss.php @@ -1,14 +1,57 @@ SERVERPATH())){ \LIB\lib_scssphp::php(); diff --git a/cache/qq/SYS_CACHE_CHECK.php b/cache/qq/SYS_CACHE_CHECK.php index c7d68c8..a0cd5ac 100644 --- a/cache/qq/SYS_CACHE_CHECK.php +++ b/cache/qq/SYS_CACHE_CHECK.php @@ -1,5 +1,19 @@