<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.bebot.link/index.php?action=history&amp;feed=atom&amp;title=Security_Tech_Notes</id>
	<title>Security Tech Notes - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.bebot.link/index.php?action=history&amp;feed=atom&amp;title=Security_Tech_Notes"/>
	<link rel="alternate" type="text/html" href="http://wiki.bebot.link/index.php?title=Security_Tech_Notes&amp;action=history"/>
	<updated>2026-05-25T22:08:11Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.1</generator>
	<entry>
		<id>http://wiki.bebot.link/index.php?title=Security_Tech_Notes&amp;diff=103&amp;oldid=prev</id>
		<title>B3b0tUzR: Created page with &#039;==== Expert use the Security System in your modules ====  The cache_mgr($action, $cache, $info, $more) function is used to add and remove information from the security cache. The…&#039;</title>
		<link rel="alternate" type="text/html" href="http://wiki.bebot.link/index.php?title=Security_Tech_Notes&amp;diff=103&amp;oldid=prev"/>
		<updated>2020-09-16T22:47:48Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;#039;==== Expert use the Security System in your modules ====  The cache_mgr($action, $cache, $info, $more) function is used to add and remove information from the security cache. The…&amp;#039;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==== Expert use the Security System in your modules ==== &lt;br /&gt;
The cache_mgr($action, $cache, $info, $more) function is used to add and remove information from the security cache. The advanced functions above all use the cache_mgr function to update information. If you are modifying the security database or roster directly in your module (something that in general should not be done) you must use the cache_mgr function to update the security cache as appropriate or your database modifications will not take effect until the bot is restarted. &lt;br /&gt;
&lt;br /&gt;
Description of function parameters:&lt;br /&gt;
$action: add or rem&lt;br /&gt;
$cache: Which cache to modify (groups, guests, members, banned, groupmem, orgranks)&lt;br /&gt;
$info: The information to add (or remove)&lt;br /&gt;
$more: Extra information needed for some actions. (Optional Parameter)&lt;br /&gt;
&lt;br /&gt;
  * Add and remove a guest:&lt;br /&gt;
&amp;lt;code php&amp;gt;&lt;br /&gt;
$this -&amp;gt; cache_mgr(&amp;quot;add&amp;quot;, &amp;quot;guests&amp;quot;, &amp;quot;Glarawyn&amp;quot;);&lt;br /&gt;
$this -&amp;gt; cache_mgr(&amp;quot;rem&amp;quot;, &amp;quot;guests&amp;quot;, &amp;quot;Glarawyn&amp;quot;);&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
  * Add and remove a member:&lt;br /&gt;
&amp;lt;code php&amp;gt;&lt;br /&gt;
$this -&amp;gt; cache_mgr(&amp;quot;add&amp;quot;, &amp;quot;members&amp;quot;, &amp;quot;Glarawyn&amp;quot;);&lt;br /&gt;
$this -&amp;gt; cache_mgr(&amp;quot;rem&amp;quot;, &amp;quot;members&amp;quot;, &amp;quot;Glarawyn&amp;quot;);&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
  * Add and remove a ban:&lt;br /&gt;
&amp;lt;code php&amp;gt;&lt;br /&gt;
$this -&amp;gt; cache_mgr(&amp;quot;add&amp;quot;, &amp;quot;banned&amp;quot;, &amp;quot;Glarawyn&amp;quot;);&lt;br /&gt;
$this -&amp;gt; cache_mgr(&amp;quot;rem&amp;quot;, &amp;quot;banned&amp;quot;, &amp;quot;Glarawyn&amp;quot;);&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
  * Add a group: &lt;br /&gt;
&amp;lt;code php&amp;gt;&lt;br /&gt;
$tmp = array(&amp;quot;gid&amp;quot; =&amp;gt; &amp;quot;10&amp;quot;, &amp;quot;name&amp;quot; =&amp;gt; &amp;quot;groupname&amp;quot;, &amp;quot;description&amp;quot; = &amp;quot;Example Group&amp;quot;, &amp;quot;access_level&amp;quot; =&amp;gt; 2);&lt;br /&gt;
$this -&amp;gt; cache_mgr(&amp;quot;add&amp;quot;, &amp;quot;groups&amp;quot;, $tmp);&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
  * Remove a group: &lt;br /&gt;
&amp;lt;code php&amp;gt;&lt;br /&gt;
$this -&amp;gt; cache_mgr(&amp;quot;rem&amp;quot;, &amp;quot;groups&amp;quot;, $groupname);&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
  * Add and remove a group member:&lt;br /&gt;
&amp;lt;code php&amp;gt;&lt;br /&gt;
$this -&amp;gt; cache_mgr(&amp;quot;add&amp;quot;, &amp;quot;groupmem&amp;quot;, $groupname, $membername);&lt;br /&gt;
$this -&amp;gt; cache_mgr(&amp;quot;rem&amp;quot;, &amp;quot;groupmem&amp;quot;, $groupname, $membername);&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
  * Change an org rank&amp;#039;s access level:&lt;br /&gt;
&amp;lt;code php&amp;gt;&lt;br /&gt;
$this -&amp;gt; cache_mgr(&amp;quot;add&amp;quot;, &amp;quot;orgrank&amp;quot;, &amp;quot;President&amp;quot;, &amp;quot;255&amp;quot;);&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>B3b0tUzR</name></author>
	</entry>
</feed>