Cache does not work with dynamic content?

12 views
Skip to first unread message

skseo

unread,
Mar 4, 2011, 4:19:05 PM3/4/11
to CirruxCache
Hi,

fist of all i have to say "ultra great work!"

Now my question:

if i cache a static file, all will be fine. but if i cache a file,
crated by a cms, it only works with local host and after deployment to
gae, the file will not cached. it should be cached for 24 hours

local header
-----------------
Server Development/1.0
Date Fri, 04 Mar 2011 20:54:35 GMT
X-Powered-By PHP/5.2.13
Set-Cookie PHPSESSID=a9a519f7561c070d57dfd3b39e008b98; expires=Fri, 11-
Mar-2011 20:32:52 GMT; path=/
Vary Accept-Encoding
Connection close
Pragma no-cache
Cache-Control no-store, no-cache, must-revalidate, post-check=0, pre-
check=0, max-age=29030401, proxy-revalidate
Content-Type text/html; charset=UTF-8
Last-Modified Fri, 04 Mar 2011 20:32:17 GMT
Expires Sat, 05 Mar 2011 20:32:17 GMT
Content-Length 18304

gae header
----------------
X-Powered-By PHP/5.2.13
Set-Cookie PHPSESSID=c05b9bc83c25dbfd1dc366624f4ca797; expires=Fri, 11-
Mar-2011 20:14:50 GMT; path=/
Vary Accept-Encoding
Pragma no-cache
Cache-Control no-store, no-cache, must-revalidate, post-check=0, pre-
check=0,max-age=29030401, proxy-revalidate
Content-Type text/html; charset=UTF-8
Last-Modified Fri, 04 Mar 2011 20:14:50 GMT
Expires Fri, 04 Mar 2011 20:56:15 GMT
Content-Encoding gzip
Date Fri, 04 Mar 2011 20:56:15 GMT
Server Google Frontend
Content-Length 3815

my confic.py
------------------
class Inside(cache.Service):
origin = 'http://gadgets-apps-widgets.com'
forceTTL = 86400
headerBlacklist = ['x-google-cache-control', 'set-cookie',
'vary']

Is there a way to tell gae: please cache this file

If the answer includes flush object, please explain how to ;-)

Samuel Alba

unread,
Mar 5, 2011, 9:24:39 PM3/5/11
to cirru...@googlegroups.com, skseo
Hi,

your configuration seems to be fine. Could you show me your full
configuration file (config.py) and also some tests URLs where I can
notice the problem? If this is a misconfiguration on your side, I will
provide you some advises.

Best,

- 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

skseo

unread,
Mar 6, 2011, 4:29:37 AM3/6/11
to CirruxCache
Thats funny,

i was close to post the config but tested it before, and now it works.

Is it enough to delete the files at gae admin panel at Datastore
Viewer to reset the app?

Samuel Alba

unread,
Mar 6, 2011, 4:36:10 AM3/6/11
to cirru...@googlegroups.com, skseo
You also have to flush the memcache data. It's possible that you made
your tests with a memcached copy of the object, so it's normal that it
works now (due to the ttl expiration).

Reply all
Reply to author
Forward
0 new messages