Icy Phoenix

     
 


Post new topic  Reply to topic 
Page 1 of 1
 
 
Reply with quote Download Post 
Post [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 
HepSend private message  
Back to topPage bottom
Icy Phoenix is an open source project, you can show your appreciation and support future development by donating to the project.

Support us
 
Reply with quote Download Post 
Post Re: Issue With RSS Feed And Cache 
 
Hi,


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



 
InformproSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post 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 ?
 



 
HepSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Issue With RSS Feed And Cache 
 
ACP >> News >> News config >> TTL ( Time To Live! )  
 




____________
www.DutchaGoGo.com (development/under construction ...Forever?¿?)
 
Joshua203Send private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post 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 :/
 



 
HepSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Issue With RSS Feed And Cache 
 
Use rss.php ?
 



 
InformproSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Issue With RSS Feed And Cache 
 
I am using rss.php
 



 
HepSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Issue With RSS Feed And Cache 
 
tab_news_main_control_btns1

Maybe this helps??
 




____________
www.DutchaGoGo.com (development/under construction ...Forever?¿?)
 
Joshua203Send private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post 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  
 



 
HepSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Issue With RSS Feed And Cache 
 
This is a guess?  

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))
        {

 



 
mortSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post 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 ...
 



 
InformproSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Issue With RSS Feed And Cache 
 
Well, some things shouldn't be cached - Maybe RSS is one of them.  
 



 
mortSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Issue With RSS Feed And Cache 
 
Too memory-heavy sadly
 



 
InformproSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post 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 ?
 



 
HepSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post 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.


 



 
mortSend private message  
Back to topPage bottom
Post new topic  Reply to topic  Page 1 of 1
 


Display posts from previous:    

HideWas this topic useful?

Link this topic
URL
BBCode
HTML




 
Permissions List
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