<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Aaron Jefferson Villanueva&#039;s Blog Site&#187; cache</title>
	<atom:link href="http://malebolgia.shadowsonawall.net/tag/cache/feed" rel="self" type="application/rss+xml" />
	<link>http://malebolgia.shadowsonawall.net</link>
	<description>Programming / Designing Blogging from windows to mac.</description>
	<lastBuildDate>Fri, 20 May 2011 12:05:55 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Cake Baking Models &#8211; Cannot see other tables</title>
		<link>http://malebolgia.shadowsonawall.net/code-programming/cake-baking-models-cannot-see-other-tables.html</link>
		<comments>http://malebolgia.shadowsonawall.net/code-programming/cake-baking-models-cannot-see-other-tables.html#comments</comments>
		<pubDate>Sun, 08 Nov 2009 02:57:17 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CakePHP]]></category>
		<category><![CDATA[Coding/Programming]]></category>
		<category><![CDATA[Database]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[cache]]></category>
		<category><![CDATA[model]]></category>
		<category><![CDATA[tabke]]></category>

		<guid isPermaLink="false">http://malebolgia.shadowsonawall.net/?p=131</guid>
		<description><![CDATA[
Problem.After I updated the database, I added 1 table; relate it to another table, and go to the command line to bake what I did, after typing "cake bake model" at the command prompt, I found out that the recently added table was not listed.

&#160;
Reason.Cake caches your model schema. Solution.1.) Clear your cache by deleting all files [...]]]></description>
			<content:encoded><![CDATA[
<p><strong><span style="color: #ff0000;">Problem.</span></strong><br />After I updated the database, I added 1 table; relate it to another table, and go to the command line to bake what I did, after typing "<span style="color: #993300;"><em>cake bake model</em></span>" at the command prompt, I found out that the recently added table was not listed.</p>
<p><a href="http://malebolgia.shadowsonawall.net/wp-content/uploads/2009/11/cake-table-large.jpg"><img class="size-full wp-image-130" title="Cake PHP Bake Model Problem" src="http://malebolgia.shadowsonawall.net/wp-content/uploads/2009/11/cake-table-smal.jpg" alt="Cake PHP Bake Model Problem" width="200" height="101" /></a></p>
<p>&nbsp;</p>
<p><strong><span style="color: #800000;">Reason.</span></strong><br />Cake caches your model schema. <br /><br /><strong><span style="color: #99cc00;">Solution.</span></strong><br />1.) <br />Clear your cache by deleting all files in your app's <strong><span style="color: #333300;"><span style="text-decoration: underline;">tmp/cache/models/</span></span></strong> <br /><span style="color: #333300;"><strong><span style="text-decoration: underline;">and tmp/cache/persistent/</span></strong></span><br /><br />2.) <br />Disable caching in your app's config/core.php // make sure to enable back again in production setup</p>


<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #009933; font-style: italic;">/**
 * Turn off all caching application-wide.  *  
 */</span>  
Configure<span style="color: #339933;">::</span><span style="color: #004000;">write</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Cache.disable'</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>



<p>After doing the solution, I can now successfully bake the new table.</p>
]]></content:encoded>
			<wfw:commentRss>http://malebolgia.shadowsonawall.net/code-programming/cake-baking-models-cannot-see-other-tables.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

