Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

josh's latest activity

Thursday, August 14 2008
795 render :partial => '/top_level_partial' should find app/views/_top_level_part... was updated in Ruby on Rails
  • josh
    • State changed from new to resolved
    by josh at 3:00 AM
800 FileStore can only store strings was updated in Ruby on Rails
  • josh
    • State changed from open to resolved
    by josh at 2:59 AM

    Marshal load can take a file object and parse it as it reads the file. It is much faster than reading the whole file into a buffer and than unmarshaling it. Aft...

770 Not able to open was updated in Ruby on Rails
  • josh
    • State changed from new to invalid
    by josh at 1:56 AM
785 Caching models fails in development was updated in Ruby on Rails
  • josh
    josh commented at 1:36 AM

    I'm now even having second thoughts about marshaling filestore. Maybe we should just say RAILS_CACHE is a simple cache store for strings only.

  • josh
    josh commented at 1:33 AM

    @jshumate Still not convinced that anyone has gotten to the bottom of the real problem.

    Agreed.

Wednesday, August 13 2008
800 FileStore can only store strings was updated in Ruby on Rails
  • josh
    josh commented at 1:53 AM

    Is there an easy to way to still read/write strings without marshaling? Just concerned about the speed impact.

799 MemoryStore cache contents should be immutable was updated in Ruby on Rails
  • josh
    josh commented at 1:45 AM

    @Ryan I meant to have Store#write call freeze on the the given value. freeze should also be called on the retrieved value as well. Requiring "frozen?" to be tru...

Monday, August 11 2008
785 Caching models fails in development was updated in Ruby on Rails
  • josh
    josh commented at 9:09 PM

    @Ryan good point about the mutable contents. I think all cached objects oughta be immutable.

    I also think a NoStore option would be a good workaround. I would ...

799 MemoryStore cache contents should be immutable was updated in Ruby on Rails
  • josh
    • Title changed from MemoryStore cache contents should be dup'd.. to MemoryStore cache contents should be immutable
    • State changed from new to open
    • Assigned user set to josh
    • Tag changed from activesupport, bug, patch to activesupport, patch
    by josh at 9:01 PM

    I'm of the opinion that all cache store should be immutable. So freeze every object on write. If you need a mutable copy, dup at your own expense.

800 FileStore can only store strings was updated in Ruby on Rails
  • josh
    • State changed from new to open
    • Assigned user set to josh
    • Tag changed from activesupport, bug, patch to activesupport, patch
    by josh at 8:59 PM

    Skip the the :raw option and always marshal for consistent behavior. That raw option was only there to pass to memcache-client, we don't need it at the moment. ...