diff options
| author | George Halkiadakis <gchalkiadakis@sklavenitis.co.gr> | 2023-04-25 16:45:03 +0300 |
|---|---|---|
| committer | George Halkiadakis <gchalkiadakis@sklavenitis.co.gr> | 2023-04-25 16:45:03 +0300 |
| commit | b594effb847b86fc6b1dae49d7948c46bba35e58 (patch) | |
| tree | 8c5a090cf8746870521324797762bb0ff14c8ae5 /public/app/extends/Cache_service.php | |
| parent | 65d07ba64d45c77d2db16272710ec5702b34d641 (diff) | |
| download | classroom-b594effb847b86fc6b1dae49d7948c46bba35e58.tar.gz classroom-b594effb847b86fc6b1dae49d7948c46bba35e58.tar.bz2 classroom-b594effb847b86fc6b1dae49d7948c46bba35e58.zip | |
alfa version; uploaded into test server (coder)
Diffstat (limited to 'public/app/extends/Cache_service.php')
| -rw-r--r-- | public/app/extends/Cache_service.php | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/public/app/extends/Cache_service.php b/public/app/extends/Cache_service.php index e44cc8e..9aac1d0 100644 --- a/public/app/extends/Cache_service.php +++ b/public/app/extends/Cache_service.php @@ -10,15 +10,19 @@ use app\models\admin\Privilege_model; * class that gathers common source-expensive queries * and helps for performance optimization * + * when forcing cache creation the following option is used: + * $options = PROXY_IGNORE_CACHE + * */ class Cache_service { public static function courses_struct( $options = 0 ) { - return proxy( // cache-get categories + return proxy( // cache-get courses [\app\models\cms\Course_model::class, 'courses_struct'], - [], CACHE_ROOT_TTL, $options + [], CACHE_ROOT_TTL, + $options ); } @@ -26,7 +30,8 @@ class Cache_service { return proxy( [\app\models\cms\Course_model::class, 'files'], - [], CACHE_ROOT_TTL, $options + [], CACHE_ROOT_TTL, + $options ); } @@ -35,11 +40,10 @@ class Cache_service { return proxy( [\app\models\admin\Privilege_model::class, 'privileges'], - [], CACHE_ROOT_TTL, $options + [], CACHE_ROOT_TTL, + $options ); } - - }
\ No newline at end of file |
