The caching is not working. I do not fully understand the problem, but if I cache the proxy request, and then try to retrieve it, the data looks right, but setting the headers on the Menu Router does not seem to work.
(i have not done checking to see if it indeed is working fine outside the menu router functionality.)
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | proxy.patch | 1.58 KB | japanitrat |
Comments
Comment #1
japanitrat commentedIt seems there are missing files in the current HEAD revision. I can't spot proxy.inc
Comment #2
zzolo commentedUpdated. I forgot to add the includes directory.
Comment #3
japanitrat commentedI don't know why it's not handled by cache_get (actually I wasn't developing with cache so much up to this point), but it seems that the expire value is never checked against current time. I added a check in _proxy() and it seems to work with that.
Also there is no need to manually (un-)serialize the cached data since this is handled by cache_get
Comment #4
japanitrat commentedwondered and searched. So here is further information on this topic:
http://drupal.org/node/534092
http://civicactions.com/blog/2009/jul/28/drupal_gotchya_cache_get_return...
Comment #5
zzolo commented@japanitrat
Great work! Thank you! Seems pretty much like a bug with the get_cache(), but its hard to say.
http://drupal.org/project/cvs/689342
Comment #6
japanitrat commentednp, you're welcome