refinery / refinerycms-blog

The very best blogging engine for Refinery CMS
http://refinerycms.com
304 stars 251 forks source link

Cache problem? #308

Closed ghost closed 11 years ago

ghost commented 11 years ago

Hi, I've installed refinerycms and the blog extension, now I've deleted the blog extension, the migrations, all the blog files and I continue seeing the index page with the deleted posts!, I can't understand the reason of this issue. Any post exists in the database, and the blog plugin was be uninstalled of the app. This is only for the index page. The cache was cleaned also.

Any help please?

Thanks, Pablo

parndt commented 11 years ago

Did you rollback the blog's database migrations?

ghost commented 11 years ago

Hi Philip!, thanks for the response, let me confirm this :)

ghost commented 11 years ago

Yes, I've ran the migrations and now the Blog tables does not exists in the database, but, it's strange, I see the index page very fast and with the posts :/

parndt commented 11 years ago

Can you show the code of your Gemfile?

ghost commented 11 years ago

I just create a new database and I've ran a new installation of Refinery in the same server without the Blog migrations and I continue seeing the index page with the Blog posts haha

Of course, my Gemfile:

source 'https://rubygems.org'

gem 'rails', '3.2.9'

gem 'pg'

group :assets do gem 'sass-rails', '~> 3.2.3' gem 'coffee-rails', '~> 3.2.1' gem 'uglifier', '>= 1.0.3' end gem 'jquery-rails', '~> 2.0.0' gem 'will_paginate'

gem 'execjs' gem 'therubyracer'

gem 'refinerycms', '~> 2.0.0' gem 'refinerycms-i18n', '~> 2.0.0' gem 'refinerycms-inquiries', '~> 2.0.0' gem 'refinerycms-search', '~> 2.0.0' gem 'refinerycms-page-images', '~> 2.0.0' gem 'refinerycms-settings'

gem 'spree', :git => 'git://github.com/spree/spree.git' gem 'spree_auth_devise', :git => 'git://github.com/spree/spree_auth_devise', :branch => 'edge'

gem 'activemerchant', :require => 'active_merchant'

parndt commented 11 years ago

Thanks - can I see your home page template? Or the template for your "index page" where the blog posts are appearing?

parndt commented 11 years ago

Nothing related to blog in there. What about app/views/refiney/pages/home.html.erb ?

parndt commented 11 years ago

Can't see any mention of blog; where are you seeing these posts appear? How would it even show any if the tables don't exist and the gem isn't included in the Gemfile?

ghost commented 11 years ago

A week ago I have set the Blog page as the home first: root: to => "refinery / blog # posts" But now is only: mount Refinery::Core::Engine, :at => '/'

It's a very strage issue, the Blog tables does not exist but I can see the Blog posts in the home page yet :/

postgresql=# select * from refinery_blog_posts where true; ERROR: relation "refinery_blog_posts" does not exist

parndt commented 11 years ago

Can you take a screenshot of what you mean?

parndt commented 11 years ago

That's the pages tab, not the blog tab so it looks like Blog isn't being used. :-)

Are you sure you don't have static HTML files in public/ that are being rendered? Do a search for "Lorem Ipsum II" across all files in your project.

ghost commented 11 years ago

:0 I can't believe it, I have an index.html in the public with hardcoded html! haha ahh this must be a joke or something, haha never happened to me something so stupid! Sorry Philip, I'll go to hide me in a cardboard box!

Many thanks for your help :)

Muchas gracias

parndt commented 11 years ago

Haha happens to everyone :+1:

ghost commented 11 years ago

:+1: