#120 ✓resolved
Gaspard Bucher

ImageBuilder formats per site

Reported by Gaspard Bucher | September 3rd, 2008 @ 03:09 PM | in 1.0

Originally posted on Trac by gaspard Original Trac Ticket

 Description (Last modified by gaspard)

Instead of 345.pv ==> Format[:pv], use 345.pv ===> site.format('pv').

Cache format info in template ? ===> change in format = expire ALL (pages+templates) ?

Since changing the formats is not done very often, this could be a good idea. No, it's not: format images are usually used in texts as well as templates.

First try loading formats when needed. If it's too slow see memcache.

Solution used: store in memory with timestamp. The timestamp is compared to a value loaded with the site record.

Class to store formats = Iformat.

Trac Attachments

Trac Comments

2008-03-31 16:40:12 changed by gaspard

status changed from new to assigned.

estimatedhours changed from 5 to 7.

description changed.

status changed from new to assigned.

estimatedhours changed from 5 to 7.

description changed.

2008-05-13 13:35:54 changed by gaspard

(In [953]) Started work on site based image formats. Refs #120(4.5)

hours set to 4.5.

totalhours changed from 0.0 to 4.5.

(In [953]) Started work on site based image formats. Refs #120(4.5)

hours set to 4.5.

totalhours changed from 0.0 to 4.5.

2008-05-14 12:20:26 changed by gaspard

Remove/destroy formated images on iformat change. This implies:

remove calculated images (stored in a directory = rmtree, see big mess (closed)" class="closed ticket">#193). expire all cache for this site.

A place to store calculated images could be:

data/(format name)/hash/hash/image.jpg

hash/hash = calculated from version.id

hours set to 2.

totalhours changed from 4.5 to 6.5.

description changed.

Remove/destroy formated images on iformat change. This implies:

remove calculated images (stored in a directory = rmtree, see big mess (closed)" class="closed ticket">#193). expire all cache for this site.

A place to store calculated images could be:

data/(format name)/hash/hash/image.jpg

hash/hash = calculated from version.id

hours set to 2.

totalhours changed from 4.5 to 6.5.

description changed.

2008-05-20 12:58:12 changed by gaspard

Implemented using Iformat class.

status changed from assigned to closed.

resolution set to fixed.

Implemented using Iformat class.

status changed from assigned to closed.

resolution set to fixed.

No comments found

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Anyone knows how to use formatting here ?

Git repository: http://github.com/zena

Official website: http://zenadmin.org

Shared Ticket Bins

People watching this ticket

Referenced by

Pages