im also having problems with the image feature.

6 views
Skip to first unread message

mortal

unread,
Sep 21, 2011, 4:09:49 AM9/21/11
to CirruxCache
Hi Sam. im also having problems with the image hendeling feature.

as far as i can see this image is stored on the cirrux cache system
http://e-cache.appspot.com/themepack/themes/themepack164/images/basketleft.jpg?rotate=90

but it does not rotate or resize

Samuel Alba

unread,
Sep 21, 2011, 3:06:37 PM9/21/11
to cirru...@googlegroups.com
Hi,

could you copy/paste your configuration?

thanks,

- Sam

> --
> Project page: http://code.google.com/p/cirruxcache/
> News: http://www.shad.cc/tag/cirruxcache
> Groups: http://groups.google.com/group/cirruxcache
>

--
Samuel Alba
@sam_alba

jacob hansen

unread,
Sep 21, 2011, 4:27:51 PM9/21/11
to CirruxCache
Hi Sam. thank you for the reply.

im not really sure if you mean config.py. but here it is.

the file is rather large. and im not really interested in displaying
urls in public. i hope you understand.


from lib import cache, redirect, forward, image
urls = {}


# EDIT BELOW

urls['default'] = (
#'(/debug/.*)', 'Debug',
#'(/images/.*)', 'config.Static',
'/bb(/.*)', 'config.bb',
'/dyn(/.*)', 'config.dyn',
'/aspnetcdn(/.*)', 'config.aspnetcdn',
'/specialthemes(/.*)', 'config.specialthemes',
'/themepack(/.*)', 'config.themepack',
'/themes2(/.*)', 'config.themes2',
'/themes(/.*)', 'config.themes',
'/demo(/.*)', 'config.demo',
'/cdn1(/.*)', 'config.cdn1',
'/buttons(/.*)', 'config.buttons',
'/admincdn1(/.*)', 'config.admincdn1'
)

# POP definition
# You can define and configure your Point Of Presence

#class Static(cache.Service):
# origin = 'http://www.XXXXX.dk'
# maxTTL = 2592000 # 1 month
# ignoreQueryString = True

class bb(cache.Service):
origin = 'http://XXX-XXXX.dk'
allowFlushFrom = ['127.0.0.1']
forceTTL = 86400 # 1 hour
ignoreQueryString = True
forwardPost = False


and all the other POP is exactly the same as "bb" but with difrent
urls naturally. and they are working very very well in all other
aspects.
i hope it gives you an idear. and if its the wrong file. please tell
me.


On Sep 21, 9:06 pm, Samuel Alba <sam.a...@gmail.com> wrote:
> Hi,
>
> could you copy/paste your configuration?
>
> thanks,
>
> - Sam
>
> On Wed, Sep 21, 2011 at 1:09 AM, mortal <to.mor...@gmail.com> wrote:
> > Hi Sam. im also having problems with the image hendeling feature.
>
> > as far as i can see this image is stored on the cirrux cache system
> >http://e-cache.appspot.com/themepack/themes/themepack164/images/baske...

jacob hansen

unread,
Sep 21, 2011, 4:34:42 PM9/21/11
to CirruxCache
by the way. i just tried to comment out "ignoreQueryString = True"
but it did not seem to help.

Samuel Alba

unread,
Sep 21, 2011, 5:24:47 PM9/21/11
to cirru...@googlegroups.com
Hi Jacob,

when you declare your pop with:
class bb(cache.Service):

It uses the cache service.

If you want to use the image service for some URL, replace it by:

class bb(image.Service):

Best,

- Sam

jacob hansen

unread,
Sep 21, 2011, 5:43:29 PM9/21/11
to CirruxCache
perfect. thank you very much. did i miss this information on the
homepage wiki ? or is it undocumented ?

in any case. are there other services than cache and image ?

Samuel Alba

unread,
Sep 21, 2011, 5:45:19 PM9/21/11
to cirru...@googlegroups.com
The different services are here: http://code.google.com/p/cirruxcache/wiki/PoP

cache.Service, image.Service, redirect.Service, forward.Service


I think the doc is not clear enough, I'll change it.

jacob hansen

unread,
Sep 21, 2011, 6:21:40 PM9/21/11
to CirruxCache
ah. i see. perhaps a small example below each table would clear things
up a little more. i did not interpet it like that. but naturally its
clear now.

by the way i had an old discussion in here about the dynamic pop
allowing for dynamic hostnames. i managed to solve the request by
using a proxy service also provided via appengine :) a little tricky.
but it works.

Samuel Alba

unread,
Sep 21, 2011, 6:29:43 PM9/21/11
to cirru...@googlegroups.com
On Wed, Sep 21, 2011 at 3:21 PM, jacob hansen <j...@e-cart.dk> wrote:
> by the way i had an old discussion in here about the dynamic pop
> allowing for dynamic hostnames. i managed to solve the request by
> using a proxy service also provided via appengine :) a little tricky.
> but it works.

Great!

I kept your email about dynamic hostnames for the CirruxCache's todolist :-)


--
Samuel Alba
@sam_alba

Reply all
Reply to author
Forward
0 new messages