PhotoPost Photo Gallery Sales PhotoPost Sales Toll Free Phone Number
Mon-Fri 9am-4pm EST
  PhotoPost Photo Sharing Photo Gallery    Visualize community tm
| | | | | | | | |

Go Back   PhotoPost Community > PhotoPost Support > PhotoPost Pro Support Forums > Photopost Pro How Do I...?

Photopost Pro How Do I...? Wondering how to do things in PhotoPost?

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old October 22nd, 2005, 12:10 PM   #1 (permalink)
Member
Verified Customer
 
Join Date: Oct 2003
Posts: 141
How do I add anti-caching code in header

I would like to add the following anti-caching code in the header:

<?php
header("Pragma: no-cache");
?>


Since my photopost is integrated with vbulletin, do I only need to put it in the vbulletin header template? Or should I be sticking it somewhere on photopost as well. Thanks in advance.
nnowakow is offline   Reply With Quote
Old October 22nd, 2005, 12:11 PM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 68,070
I beleive both Vbulletin and Photopost use no-cache in the headers
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old October 22nd, 2005, 12:31 PM   #3 (permalink)
Member
Verified Customer
 
Join Date: Oct 2003
Posts: 141
you mean its already there? We did an experiment once - we placed ads on our photogallery and then compared the number of views reported on our ad server compared to the number of views reported by photopost (by counting up how many times each photo was viewed) and the ad server reported significantly lower veiws. Why would this be?
nnowakow is offline   Reply With Quote
Old October 22nd, 2005, 12:41 PM   #4 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 68,070
Definately in there

<!-- no cache headers -->
<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="expires" content="Tue, 21 Nov 2000 05:00:00 GMT" />
<meta http-equiv="cache-control" content="no-cache, must-revalidate" />
<!-- end no cache headers -->


photo views are either cached or written immediately to the photos table in photopost depending on how you have things set
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old October 22nd, 2005, 01:00 PM   #5 (permalink)
Member
Verified Customer
 
Join Date: Oct 2003
Posts: 141
Glad its in there. You mentioned "depending on how you have things set". How do I set it so that the no cache mode is activated? Is there something I need to do?
nnowakow is offline   Reply With Quote
Old October 22nd, 2005, 01:42 PM   #6 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 68,070
I was not referring to the cache I was referring to whether your using the view cache or not in global option settings
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old October 22nd, 2005, 03:43 PM   #7 (permalink)
Member
Verified Customer
 
Join Date: Oct 2003
Posts: 141
Chuck - I have 4.8 version. In the admin for that version, there is no cache option. Is there a no-cache option for 4.8?
nnowakow is offline   Reply With Quote
Old October 22nd, 2005, 04:58 PM   #8 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 68,070
There is no option for no cache in 5.2 either.

no-cache headers are hard coded into our program forever.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Head Tags - I need to add code - Where? Sal Collaziano Photopost Pro How Do I...? 3 March 29th, 2005 01:21 PM
How do I add my own header and links booyachickenmomm Photopost Pro How Do I...? 7 March 3rd, 2005 06:27 AM
Anti-Leeching Code meko72 Photopost Pro Installation & Upgrades 2 February 9th, 2005 07:50 PM


All times are GMT -5. The time now is 11:27 AM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0