[SOLVED]Issue With RSS Feed And Cache


Subject: [SOLVED]Issue With RSS Feed And Cache
Hello that's me again !

Ok first of all I've updated to the last 2.0.1.87 version.

I'll try to explain my issue as much as I can, I have a wordpress site with a RSS feed reader so people can see what are the last topics posted etc..
The RSS reader actually see everything that is contained into the rss_feed.xml file in my forum cache folder.

The problem is, when I make a new post the forum will actually not update/recreate this file so my wordpress site won't see any change.. If I delete this file it will actually be recreated when I refresh my site with the new post showing up.
The only way I can have my site to show new post is when I :

[list]Delete the rss_feed.xml file in the cache folder[/list]
[list]Clean the cache in the ACP[/list]

I've tried to desactivate the cache in the themes options but it still isn't working :(

Anyone know how I can fix this please by chance ? :)

nb: site is http://www.conseil-config.com and forum is located there http://www.conseil-config.com/forum/

Last edited by Hep on Thu 17 Jan, 2013 10:51; edited 2 times in total
Profile PM  
Subject: Re: Issue With RSS Feed And Cache
Hi,


I think the rss's cache is configurable from ACP.

Profile PM  
Subject: Re: Issue With RSS Feed And Cache
Hello Informpro, thanks for your answer !

Sadly I have yet to find the option, do you know where it is ?

Profile PM  
Subject: Re: Issue With RSS Feed And Cache
ACP >> News >> News config >> TTL ( Time To Live! ) :wink:

Subject: Re: Issue With RSS Feed And Cache
Hi jousa203, thanks for your answer

If I change the TTL to 1min, it will actually works on my web browser, and show the last post after 1minute but it still not updates the actual rss_feed.xml file in the cache folder so the RSS reader on my site is still not updating :/

Profile PM  
Subject: Re: Issue With RSS Feed And Cache
Use rss.php ?

Profile PM  
Subject: Re: Issue With RSS Feed And Cache
I am using rss.php

Profile PM  
Subject: Re: Issue With RSS Feed And Cache
tab_news_main_control_btns1

Maybe this helps??

Subject: Re: Issue With RSS Feed And Cache
I tried your plugin and I still have the same issue.

It will not show any new post until I delete rss_feed.xml from the forum cache folder :(

Profile PM  
Subject: Re: Issue With RSS Feed And Cache
This is a guess? :mryellow:

rss.php

Find this:

Code: [Download] [Hide] [Select]
$cachefiletime = @filemtime($cache_file);
$timedif = ($deadline - $cachefiletime);
if(($timedif < CACHE_TIME) && (@filesize($cache_file) > 0))
{


And just try this until MG can sort it out?

Code: [Download] [Hide] [Select]
$cachefiletime = @filemtime($cache_file);

$cachefiletime = '0';

$timedif = ($deadline - $cachefiletime);
if(($timedif < CACHE_TIME) && (@filesize($cache_file) > 0))
{

Profile PM  
Subject: Re: Issue With RSS Feed And Cache
Yeah when I had to take a look for a bugfix I had to mess around this to get the rss to refresh ...

Profile PM  
Subject: Re: Issue With RSS Feed And Cache
Well, some things shouldn't be cached - Maybe RSS is one of them. :?:

Profile PM  
Subject: Re: Issue With RSS Feed And Cache
Too memory-heavy sadly

Profile PM  
Subject: Re: Issue With RSS Feed And Cache
Hello !

I found out the other day how to make it work until it get fixed (well I'm not sure if it's the right thing to do but I got my RSS working :P)

I went in rss.php to find :

Code: [Download] [Hide] [Select]
// BEGIN Cache Mod
$use_cached = false;
$cache_file = '';
if(CACHE_TO_FILE && (CACHE_TIME > 0))
{
$cache_file = IP_ROOT_PATH . $cache_root . $cache_filename;
if(($cache_root != '') && empty($_GET))
{
$cachefiletime = @filemtime($cache_file);
$timedif = ($deadline - $cachefiletime);
if(($timedif < CACHE_TIME) && (@filesize($cache_file) > 0))
{
$use_cached = true;
}
}
}
// END Cache Mod


The I changed $use_cached = true; to $use_cached = false;

Should I try mort solution or can I leave it like that for now ? :)

Profile PM  
Subject: Re: Issue With RSS Feed And Cache
Mate, if it's working as you expect it and are happy with it - Leave it as is until MG can have a look at what's happening.

;)

Profile PM  

Page 1 of 1


  
You cannot post new topics
You cannot reply to topics
You cannot edit your posts
You cannot delete your posts
You cannot vote in polls
You cannot attach files
You can download files
You cannot post calendar events

   

This is a "Lo-Fi" version of our main content. To view the full version with more information, formatting and images, please click here.

Powered by Icy Phoenix based on phpBB
Generation Time: 0.3513s (PHP: 13% SQL: 87%)
SQL queries: 16 - Debug Off - GZIP Enabled