Thank you Jim and Keith.

That helped me a lot.

Radu

> Radu,
>
> You're questions are not dumb. This is why this list exists.
>
> I'm not certain I understand your problem, but let me restate it and
> you can tell me if I'm wrong.
>
> You're using the file_system extension to edit content locally in a
> text editor. Then you load that content back into your local database.
> Then you do "heroku db:push" and expect to see the changes on the
> site.
> Is this correct?
>
> If that's the scenario, there's nothing in the push to the database on
> heroku that would clear the cache. So your cache would only be cleared
> when you save something in the admin interface on the running
> application.
>
> Do I understand your problem correctly?
>
> Keith is correct in that the latest version of Radiant no longer needs
> that change to the cache location.
>
> The file_system extension also provides a task to clear the cache. So
> you'd need to do "heroku rake cache:clear". That, however, needs to be
> updated for the new location for the cache so it won't currently work.
> To fix it you'd need to change the cache:clear rake task in
> vendor/extensions/file_system/lib/tasks/file_system_extension_tasks.rake
> to
>
> `rm -Rf tmp/cache/*`
>
> -Jim
>
> On Fri, Oct 23, 2009 at 10:25 AM, Keith Bingman <ke...@keithbingman.com>
> wrote:
>> What version of Radiant are you using? The latest gem (0.8.1) moved
>> the cache to the temp folder. I just tried it out on a site of Heroku
>> and it works great. The cache is immediately cleared on page save.
>>
>> Keith
>>
>>
>>
>> On Oct 23, 2009, at 1:48 PM, Radu Curteanu wrote:
>>
>>> Hello.
>>>
>>> I have a dumb one.
>>> Here it is.
>>>
>>> I'm trying to install Radinat on Heroku by following this:
>>> http://blog.heroku.com/archives/2009/3/26/radiant_cms_in_5_minutes_or_less/
>>> and of course this
>>> http://wiki.github.com/radiant/radiant/installing-on-heroku
>>>
>>> I've also installed the file_system extension.
>>>
>>> So after I did everything in those post the installation seemed to
>>> work
>>> perfect but that wasn't the case. I did this locally :
>>> rake file_system:to_files made some changes here and there did this
>>> afterwards : rake file_system: to_db. Sent everything to Heroku but
>>> even
>>> if in the admin part on Radiant the changes were made on the website
>>> nothing changed. It changed only after I added something in admin
>>> part and
>>> then hit save. And after this all the changes could be seen on the
>>> frontend of the website. After seeing this I thought there must be
>>> something with the cache so I go here
>>> http://wiki.github.com/radiant/radiant/installing-on-heroku
>>> were there is this
>>> "Also if you want the page cache to be cleared on page save (or ever
>>> really) you’ll also need to hack on RADIANT_ROOT/lib/radiant/cache.rb
>>> search for the lines:
>>>
>>> def initialize(root="#{Rails.root}/cache/entity")
>>> def initialize(root="#{Rails.root}/cache/meta")
>>>
>>> and change them to:
>>>
>>> def initialize(root="#{Rails.root}/tmp/cache/entity")
>>> def initialize(root="#{Rails.root}/tmp/cache/meta")"
>>>
>>> Can this solve my dumb problem? And If yes? Where is
>>> RADIANT_ROOT/lib/radiant/cache.rb ? I figure that RADIANT_ROOT is the
>>> installation dir? And If that is true where is  the lib dir?
>>>
>>> Please help.
>>>
>>> I appologize for the dumb question but i'm stuck here.
>>>
>>> Thank you
>>>
>>> Radu
>>>
>
>
> --
> Jim Gay
> http://www.saturnflyer.com
> _______________________________________________
> Radiant mailing list
> Post:   Radiant@radiantcms.org
> Search: http://radiantcms.org/mailing-list/search/
> Site:   http://lists.radiantcms.org/mailman/listinfo/radiant
>


_______________________________________________
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant

Reply via email to