<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.2" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: ACL tables&#8217; optimization for CakePHP 1.2.x.x</title>
	<link>http://myeasyscripts.com/loudbaking/acl-tables-optimization-for-cakephp-12xx/</link>
	<description>Specialty cuisines: app development, internet marketing and entrepreneurship</description>
	<pubDate>Tue, 18 Nov 2008 22:04:50 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.2</generator>

	<item>
		<title>By: Jamison_Hemmert</title>
		<link>http://myeasyscripts.com/loudbaking/acl-tables-optimization-for-cakephp-12xx/#comment-349</link>
		<author>Jamison_Hemmert</author>
		<pubDate>Thu, 14 Feb 2008 16:59:35 +0000</pubDate>
		<guid>http://myeasyscripts.com/loudbaking/acl-tables-optimization-for-cakephp-12xx/#comment-349</guid>
		<description>&lt;p&gt;This sounds like a great idea but the project I am working in is still using cake 1.1(stable).  We are having problems with extreme slowness when loading a page because it goes through a recursive check of the acl to check permissions to the page. here is the checkACL function... any advice would be awesome
function checkACL($acl, $role, $aco)
        {
                $role = (isset($acl['role'])) ? $acl['role'] : $role;
                unset($acl['role']);&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;            if(!empty($acl))
            {
                    foreach($acl as $key =&#38;gt; $entry)
                    {
                            $acl[$key] = $this-&#38;gt;checkACL($entry, $role, "$aco.$key");
                    }
            }

            $acl['permission'] = $this-&#38;gt;Acl-&#38;gt;check($role, $aco, "read");
            //debug("$role - $aco - {$acl['permission']}", true);
            return $acl;
    }
&lt;/code&gt;&lt;/pre&gt;
</description>
		<content:encoded><![CDATA[<p>This sounds like a great idea but the project I am working in is still using cake 1.1(stable).  We are having problems with extreme slowness when loading a page because it goes through a recursive check of the acl to check permissions to the page. here is the checkACL function&#8230; any advice would be awesome
function checkACL($acl, $role, $aco)
        {
                $role = (isset($acl[&#8217;role&#8217;])) ? $acl[&#8217;role&#8217;] : $role;
                unset($acl[&#8217;role&#8217;]);</p>

<pre><code>            if(!empty($acl))
            {
                    foreach($acl as $key =&amp;gt; $entry)
                    {
                            $acl[$key] = $this-&amp;gt;checkACL($entry, $role, "$aco.$key");
                    }
            }

            $acl['permission'] = $this-&amp;gt;Acl-&amp;gt;check($role, $aco, "read");
            //debug("$role - $aco - {$acl['permission']}", true);
            return $acl;
    }
</code></pre>]]></content:encoded>
	</item>
	<item>
		<title>By: phpsc</title>
		<link>http://myeasyscripts.com/loudbaking/acl-tables-optimization-for-cakephp-12xx/#comment-80</link>
		<author>phpsc</author>
		<pubDate>Sun, 28 Oct 2007 10:00:54 +0000</pubDate>
		<guid>http://myeasyscripts.com/loudbaking/acl-tables-optimization-for-cakephp-12xx/#comment-80</guid>
		<description>&lt;p&gt;Nice Article. I always thought about the performance cost of using ACL. The indexes you suggest surely improve things a lot.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Nice Article. I always thought about the performance cost of using ACL. The indexes you suggest surely improve things a lot.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Loud Baking &#187; Blog Archive &#187; Conventional solution for the visitors + AclComponent</title>
		<link>http://myeasyscripts.com/loudbaking/acl-tables-optimization-for-cakephp-12xx/#comment-79</link>
		<author>Loud Baking &#187; Blog Archive &#187; Conventional solution for the visitors + AclComponent</author>
		<pubDate>Sun, 28 Oct 2007 05:24:48 +0000</pubDate>
		<guid>http://myeasyscripts.com/loudbaking/acl-tables-optimization-for-cakephp-12xx/#comment-79</guid>
		<description>&lt;p&gt;[...] fully implementing the AclComponent and optimizing it&#8217;s queries, I also realized that not only does it require configuration but it also bombards your database [...]&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>[&#8230;] fully implementing the AclComponent and optimizing it&#8217;s queries, I also realized that not only does it require configuration but it also bombards your database [&#8230;]</p>]]></content:encoded>
	</item>
	<item>
		<title>By: links for 2007-10-02 &#171; Richard@Home</title>
		<link>http://myeasyscripts.com/loudbaking/acl-tables-optimization-for-cakephp-12xx/#comment-32</link>
		<author>links for 2007-10-02 &#171; Richard@Home</author>
		<pubDate>Tue, 02 Oct 2007 05:17:18 +0000</pubDate>
		<guid>http://myeasyscripts.com/loudbaking/acl-tables-optimization-for-cakephp-12xx/#comment-32</guid>
		<description>&lt;p&gt;[...] Loud Baking » Blog Archive » ACL tables&#8217; optimization for CakePHP 1.2.x.x How to tweak the index&#8217;s for the ACL tables to improve performance (tags: cakephp acl performance index)       Posted by Richard@Home Filed in 15 [...]&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>[&#8230;] Loud Baking » Blog Archive » ACL tables&#8217; optimization for CakePHP 1.2.x.x How to tweak the index&#8217;s for the ACL tables to improve performance (tags: cakephp acl performance index)       Posted by <a href="mailto:Richard@Home">Richard@Home</a> Filed in 15 [&#8230;]</p>]]></content:encoded>
	</item>
</channel>
</rss>
