PluginProbe
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses / 4.4.1
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses v4.4.1
4.4.7 4.4.6 4.4.5 4.4.4 4.4.3 4.4.2 4.4.1 4.4.0 4.3.9.1 4.3.9 4.3.8 4.3.7 4.1.6.9 4.1.6.9.1 4.1.6.9.2 4.1.6.9.3 4.1.6.9.4 4.1.7 4.1.7.1 4.1.7.2 4.1.7.3 4.1.7.3.1 4.1.7.3.2 4.2.0 4.2.1 All 138 releases
learnpress / inc / cache / class-lp-settings-cache.php

class-lp-settings-cache.php in LearnPress – WordPress LMS Plugin for Create and Sell Online Courses 4.4.1, at inc/cache/class-lp-settings-cache.php

58 lines 989 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 /**
4 * Class LP_Settings_Cache
5 *
6 * @author tungnx
7 * @since 4.2.2
8 * @version 1.0.0
9 */
10 defined( 'ABSPATH' ) || exit();
11
12 class LP_Settings_Cache extends LP_Cache {
13 /**
14 * @var string key group
15 */
16 protected $key_group_child = 'settings';
17 /**
18 * @var string key cache
19 */
20 public $key_settings = 'lp_settings';
21
22 public function __construct( $has_thim_cache = false ) {
23 parent::__construct( $has_thim_cache );
24 }
25
26 /**
27 * Set cache lp settings.
28 *
29 * @param string $value
30 *
31 * @return void
32 */
33 public function set_lp_settings( string $value = '' ) {
34 $key = "$this->key_settings";
35 $this->set_cache( $key, $value );
36 }
37
38 /**
39 * Get cache lp settings.
40 *
41 * @return array|false|mixed|string
42 */
43 public function get_lp_settings() {
44 $key = $this->key_settings;
45 return $this->get_cache( $key );
46 }
47
48 /**
49 * Clear cache lp settings.
50 *
51 * @return void
52 */
53 public function clean_lp_settings() {
54 $key = $this->key_settings;
55 $this->clear( $key );
56 }
57 }
58