Permalink
Commits on Jan 3, 2009
  1. I give up

    benschwarz committed Jan 3, 2009
Commits on Dec 23, 2008
  1. it made no sense before to pass the conditions to eager_cache for lat…

    giom committed Dec 23, 2008
    …er writing it to the store. Now when the new cache is written it uses the conditions passed to the cache class method for the action to cache.
    
    So eager_cache no longuer accept a :store option...
  2. corrected the comment for eager_cache instance method, renamed condit…

    giom committed Dec 23, 2008
    …ions to options to better reflect its real use (since it's never given to a store to write)
  3. API CHANGE: eager_cache instance method should now be called like thi…

    giom committed Dec 23, 2008
    …s: eager_cache :show, :uri => url(:article, @article), :params => {:id => @article.id}, :method => :get
    
    Note the :params hash options that will be used by eager_dispatch when caching the action
  4. API CHANGE: build_request now takes a hash to describe the request

    giom committed Dec 23, 2008
     Acceptable options for the request hash
          - :uri The uri of the request
          - :method The http method (defaults to :get)
          - :params The params
          - any env variable you may need
Commits on Dec 22, 2008
  1. Now you can do cache :show, :stores => [:page_store, :action_store] a…

    giom committed Dec 22, 2008
    …nd it will work (the code for this feature was there but it didn't work with the way Merb::Cache[] was called in the code)
    
    spec for this will be coming soon once we have an integration spec with different stores.
  2. some more YARD comments...

    giom committed Dec 22, 2008
Commits on Dec 20, 2008
  1. Added caches? which tells you if the request will be cached

    giom committed Dec 20, 2008
    Added cache_for which gives you the content of the cache for that request
    Addded delete_cache_for which allows you to delete the cache for that request from the store
    
    The specs are currently in page_store_spec... it would be better to move them over to an integration spec files that tests the use of Adhocstore, action store, page store on a controller with eager caching and so on (real life cases...)
Commits on Dec 19, 2008
  1. Changed the api for eager_cache

    giom committed Dec 19, 2008
     - added a :uri parameter that can be use to specify the uri (quicker and more readable than doing {build_request(uri)})
     - added a :method parameter to define the http_method to use, if not provided it defaults to :get (even if the request that just completed was a post request), since in most case one only wants to cache get request it makes sense to default to them
     - added some specs using eager_cache in the page store spec.
  2. if no uri is given to CacheRequest, env[REQUEST_URI] should be used b…

    giom committed Dec 19, 2008
    …y default first and then only fall back to /
  3. Makes Merb::Cache::CacheRequest play more like a real request which a…

    giom committed Dec 19, 2008
    …llows it to work with page store (query_string_present? didn't work before)
  4. To be more consistent the gzip_store should not always be writable?. …

    giom committed Dec 19, 2008
    …As a strategy store, it should at least check that its stores are writable?
  5. fetch_partial now accepts an option :params_for_cache that is used as…

    giom committed Dec 19, 2008
    … parameter for the cache store
    
    if it is not given, opts.dup is passed instead (without dup, opts become empty when writing after the call to partial)
    The template_key is modified to only contain the relative path from merb.root
    
    specs needed though...
  6. Collisions gallore, the old version of hash.to_sha2 returned the same…

    giom committed Dec 19, 2008
    … digest for different hashes.
Commits on Dec 7, 2008
  1. Moved the write method specs to each and every cache store that will …

    benschwarz committed Dec 7, 2008
    …actually cache nearly any kind of object. Unlike a Page or Action store.
  2. Added hassox's viking for looking at later

    benschwarz committed Dec 7, 2008
    Cleanup
  3. Rearraging controller extensions and burning specs like nobodys busin…

    benschwarz committed Dec 7, 2008
    …ess (Lets try this again)