Skip to content

Commit

Permalink
force linking of cache file
Browse files Browse the repository at this point in the history
  • Loading branch information
digitaltom committed Apr 19, 2012
1 parent cd770b2 commit 30bd23c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions app/controllers/package_controller.rb
Expand Up @@ -8,8 +8,6 @@ class PackageController < ApplicationController


skip_before_filter :set_language, :set_distributions, :set_baseproject, :only => [:thumbnail, :screenshot] skip_before_filter :set_language, :set_distributions, :set_baseproject, :only => [:thumbnail, :screenshot]


caches_page :thumbnail, :screenshot

def show def show
required_parameters :package required_parameters :package
@pkgname = params[:package] @pkgname = params[:package]
Expand Down Expand Up @@ -122,7 +120,8 @@ def image pkgname, type, default_url
response.headers['Content-Type'] = 'image/png' response.headers['Content-Type'] = 'image/png'
response.headers['Content-Disposition'] = 'inline' response.headers['Content-Disposition'] = 'inline'
render :text => content, :content_type => 'image/png' render :text => content, :content_type => 'image/png'
File.symlink(default_url, path ) if path cache_page
FileUtils.ln_sf( default_url, path ) if path
end end


def set_categories def set_categories
Expand Down

0 comments on commit 30bd23c

Please sign in to comment.