Forum OpenACS Q&A: Re: Proxy problems with log-in

Collapse
Posted by Brad Ford on
Thanks everyone!

I added the ns_set put [ns_conn outputheaders] "Pragma" "no-cache" as the first tcl call in default-master.tcl and all caching problems from my office are fixed!

Should a note be put in the install docs about this or possibly an edit to the release tarball default-master.tcl if this is a common-ish problem? It's also a problem on openacs.org.

I'm pretty new to later versions of openacs (haven't kept up with changes since learning the system in the v2 days of classic acs) - will the pragma no-cache option affect cached sql results? As I understand, many queries are set to cache for a certain time period to keep server loads down - or am I way off base here?

Collapse
Posted by Tilmann Singer on
Brad, this header and some others to prevent caching are automatically output in the 4.7 version of OpenACS. Maybe someone wants to merge that back to 4.6, but as a new feature it first went into the development branch.

I wouldn't recommend the quick and dirty fix of putting that in the default-master for the standard toolkit, since it won't affect pages that don't use the default master, e.g. the search results page.

And that has nothing to do with caching of query results, it's just an http thing.