summaryrefslogtreecommitdiff
path: root/public/app/extends
diff options
context:
space:
mode:
Diffstat (limited to 'public/app/extends')
-rw-r--r--public/app/extends/.gitkeep0
-rw-r--r--public/app/extends/Cache_service.php16
2 files changed, 10 insertions, 6 deletions
diff --git a/public/app/extends/.gitkeep b/public/app/extends/.gitkeep
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/public/app/extends/.gitkeep
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