[SOLVED]Issue With RSS Feed And Cache »  Show posts from    to     

Icy Phoenix


Old Support Topics - [SOLVED]Issue With RSS Feed And Cache



Hep [ Mon 14 Jan, 2013 02:27 ]
Post 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/


Informpro [ Mon 14 Jan, 2013 12:40 ]
Post subject: Re: Issue With RSS Feed And Cache
Hi,


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


Hep [ Mon 14 Jan, 2013 19:14 ]
Post 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 ?


Joshua203 [ Mon 14 Jan, 2013 19:47 ]
Post subject: Re: Issue With RSS Feed And Cache
ACP >> News >> News config >> TTL ( Time To Live! )


Hep [ Mon 14 Jan, 2013 20:26 ]
Post 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 :/


Informpro [ Mon 14 Jan, 2013 20:57 ]
Post subject: Re: Issue With RSS Feed And Cache
Use rss.php ?


Hep [ Mon 14 Jan, 2013 21:06 ]
Post subject: Re: Issue With RSS Feed And Cache
I am using rss.php


Joshua203 [ Mon 14 Jan, 2013 21:14 ]
Post subject: Re: Issue With RSS Feed And Cache
tab_news_main_control_btns1

Maybe this helps??


Hep [ Mon 14 Jan, 2013 21:53 ]
Post 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


mort [ Wed 16 Jan, 2013 14:47 ]
Post subject: Re: Issue With RSS Feed And Cache
This is a guess?

rss.php

Find this:

Code: [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: [Hide] [Select]
$cachefiletime = @filemtime($cache_file);

$cachefiletime = '0';

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


Informpro [ Wed 16 Jan, 2013 14:54 ]
Post 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 ...


mort [ Wed 16 Jan, 2013 15:01 ]
Post subject: Re: Issue With RSS Feed And Cache
Well, some things shouldn't be cached - Maybe RSS is one of them.


Informpro [ Wed 16 Jan, 2013 16:28 ]
Post subject: Re: Issue With RSS Feed And Cache
Too memory-heavy sadly


Hep [ Wed 16 Jan, 2013 16:37 ]
Post 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: [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 ?


mort [ Wed 16 Jan, 2013 21:06 ]
Post 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.





Powered by Icy Phoenix