4 include_once(
"./Services/Cache/classes/class.ilCache.php");
28 $news_set->get(
"acc_cache_mins");
30 parent::__construct(
"ServicesNews",
"News",
true);
32 if ((
int) $news_set->get(
"acc_cache_mins") == 0)
34 self::$disabled =
true;
44 return self::$disabled
or parent::isDisabled();
55 return parent::readEntry($a_id);
64 function storeEntry($a_id, $a_value, $a_int_key1 = null, $a_int_key2 = null,
65 $a_text_key1 = null, $a_text_key2 = null)
70 parent::storeEntry($a_id, $a_value);
readEntry($a_id)
Read an entry.
storeEntry($a_id, $a_value, $a_int_key1=null, $a_int_key2=null, $a_text_key1=null, $a_text_key2=null)
Id is user_id:ref_id, we store ref_if additionally.
__construct()
Constructor.
isDisabled()
Check if cache is disabled.
setExpiresAfter($a_val)
Set expires after x seconds.