#359 new

Bug? cached_pages missing created_at

Reported by Delineate | July 8th, 2010 @ 11:48 PM

This problem only arose when setting up my app under production using version v0.3.2. This occurs when trying to access a just created / page on a freshly installed site.

  CachedPage Load (10.4ms)   SELECT * FROM "cached_pages" WHERE ("cached_pages"."url" = '/' AND "cached_pages"."site_id" = 1) LIMIT 1
  ActiveRecord::UnknownAttributeError (unknown attribute: created_at):
  vendor/plugins/adva_cms/app/controllers/articles_controller.rb:24:in index'

My best guess was that this was caching related and the created_at was missing from the cached_pages DB table.
I added the field and low and behold, the page successfully displayed.

I don't know much about the caching system or why this hasn't been noticed before. I cannot find a schema reference or migration that creates cached_pages.created_at anywhere in the code base. But it's quite possible I'm missing something.

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<p>Cutting edge cms, blog, wiki, forum ... plattform.</p>

<p>Find the code on <a href="http://github.com/svenfuchs/adva_cms/tree/master">GitHub: adva cms</a></p>

<p>Part of the business application framework <a href="http://www.advabest.org/">adva best</a>.</p>

People watching this ticket