Cache images per role

David Lesieur - September 28, 2008 - 15:02
Project:Facelift Image Replacement Integration
Version:6.x-1.0
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:needs review
Description

A page's layout is often quite different whether one is an authenticated user or an anonymous one. For example, a sidebar might be present only when the user is logged in.

The first user visiting a page will cause generation of the images with the sizes pertaining to the page. If that user is authenticated, the content area's width, for example, might be significantly less than what an anonymous user would have obtained, but anonymous users will later be served the narrower image that has been generated for an authenticated user.

#1

btopro - September 28, 2008 - 16:37
Status:active» postponed (maintainer needs more info)

Ummm....Hopefully this will be taken care of in 1.1? I honestly don't know, I'll be upgrading the Flir codebase to FLIR 1.2 which supports something called livequery (I think they call it that at least) which will dynamically resize the image based on overflow (i think) so that might take care of the issue. If not then I'll have to talk to author about this cause I know nothing of how it does the caching or selection for caching. Good request though.

#2

David Lesieur - September 29, 2008 - 01:11
Status:postponed (maintainer needs more info)» needs review

There was also another issue: The same text might be used in different pages with different layouts, thus requiring a different image.

The attached patch solves those issues.

AttachmentSize
flir-cache.patch 1.31 KB
 
 

Drupal is a registered trademark of Dries Buytaert.