Permalink
Browse files

force linking of cache file

  • Loading branch information...
1 parent cd770b2 commit 30bd23c05d47464fa93c2f9264d9ee8b05a3b78e @digitaltom digitaltom committed Apr 19, 2012
Showing with 2 additions and 3 deletions.
  1. +2 −3 app/controllers/package_controller.rb
@@ -8,8 +8,6 @@ class PackageController < ApplicationController
skip_before_filter :set_language, :set_distributions, :set_baseproject, :only => [:thumbnail, :screenshot]
- caches_page :thumbnail, :screenshot
-
def show
required_parameters :package
@pkgname = params[:package]
@@ -122,7 +120,8 @@ def image pkgname, type, default_url
response.headers['Content-Type'] = 'image/png'
response.headers['Content-Disposition'] = 'inline'
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
def set_categories

0 comments on commit 30bd23c

Please sign in to comment.