Welcome to Geeklog, Anonymous Wednesday, February 05 2025 @ 06:11 pm EST
Geeklog Forums
RDF File Creation Trigger
I\'ve noticed some strange behavior on my geeklog site (http://www.janlyn.com/weblog/). It seems that every time someone visits my site, it regenerates the rdf file.
This is causing a problem with some sites that track area blogs (ie: http://www.crablogs.com/) since they show my site as constantly being updated. Other sites (like http://baltimore.localfeeds.com/) do not have this problem. I assume they process the RDF file differently.
What triggers the creation of the RDF file? The only thing I can figure that is causing this problem is the random movie quote static page. I figure since this changes every time to page is loaded it must be triggering the RDF. The quote does not appear in the RDF however. (yeah, I know its not actually a static page, but its the only way I could get it to work...)
Any help would be greatly appreciated.
4
4
Quote
Status: offline
Dirk
Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
The function that checks to see if the RDF file needs to be updated is
COM_rdfUpToDateCheck()
in lib-common.php. And it sure doesn\'t have anything to do with static pages ...
I don\'t have a 1.3.8 test setup right now, and the code in CVS has changed a lot (and seems to work, btw), so I can\'t offer a solution right now. How\'s your PHP and MySQL knowledge?
bye, Dirk
6
4
Quote
Status: offline
pgarrett
Forum User
Newbie
Registered: 09/03/03
Posts: 3
My PHP/SQL knowledge is basic at best. However, I took a quick look at the function you mentioned and made a quick modification. I changed the last if statement from:
if( $sids ‹› $last_rdf_sids )
to:
if( $sids ‹ $last_rdf_sids )
this stops the update on every reload but DOES update on story addition/modification.
I have no idea how this will effect future dated stories.
Very little testing. Use at your own risk.
5
5
Quote
All times are EST. The time is now 06:11 pm.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content