OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



Cache-Control | max-age=172800?

Are you responsible for making OCS work -- installing, upgrading, migrating or troubleshooting? Do you think you've found a bug? Post in this forum.

Moderators: jmacgreg, michael, John

Forum rules
What to do if you have a technical problem with OCS:

1. Search the forum. You can do this from the Advanced Search Page or from our Google Custom Search, which will search the entire PKP site. If you are encountering an error, we especially recommend searching the forum for said error.

2. Check the FAQ to see if your question or error has already been resolved. Please note that this FAQ is OJS-centric, but most issues are applicable to both platforms.

3. Post a question, but please, only after trying the above two solutions. If it's a workflow or usability question you should probably post to the OCS Conference Support and Discussion subforum; if you have a development question, try the OCS Development subforum.

Cache-Control | max-age=172800?

Postby Jim » Fri May 31, 2013 3:02 pm

OCS version 2.3.5.0 - PHP5.2.6-1+lenny9 - Apache2

I'm troubleshooting a caching problem. I'd like to disable caching temporarily and or change some settings.

In the http response header I see this line Cache-Control max-age=172800. Where does this come from, the Apache2 config or the PHP config? I'd like to turn if off, or set it to 3600.

Also how do you turn off caching? We're using x-cache. Can I simple edit the php.ini file and set the local and master values for xcacher.cacher to off?

Thanks
Jim
 
Posts: 22
Joined: Wed May 02, 2012 1:16 pm

Re: Cache-Control | max-age=172800?

Postby asmecher » Fri May 31, 2013 3:15 pm

Hi Jim,

The max-age and XCache parts of your question are outside of anything OCS has control over; XCache can be disabled by editing php.ini and restarting apache, but you're best off googling for details. The max-age default could be coming from PHP or Apache; again, some googling should turn it up. OCS doesn't specify the max-age parameter, but it does control caching type; search lib/pkp/classes/template/PKPTemplateManager.inc.php for Cache-Control to find where that happens.

Regards,
Alec Smecher
Public Knowledge Project Team
asmecher
 
Posts: 8673
Joined: Wed Aug 10, 2005 12:56 pm

Re: Cache-Control | max-age=172800?

Postby Jim » Fri May 31, 2013 7:35 pm

Thanks Alex.
Jim
 
Posts: 22
Joined: Wed May 02, 2012 1:16 pm


Return to OCS Technical Support

Who is online

Users browsing this forum: No registered users and 3 guests