1
Marco
crazy cache on backend.php
  • 2004/10/16 21:33

  • Marco

  • Home away from home

  • Posts: 1256

  • Since: 2004/3/15


I'm looking for some help about cache on "core" backend.php file.
I used serach function, found this https://xoops.org/modules/newbb/viewto ... t_id=64886#forumpost64886

I set cache time to 0, nothing seems to change...

Where can I set a proper cache limit for backend.php, now I find rss fead doesn't refresh on an acceptable frequency (too slow)
i.e.

who can explain me these 3 lines, and what they are used for, and then how to correct them
//$tpl->xoops_setTemplateDir(XOOPS_ROOT_PATH.'/themes');
//$tpl->xoops_setCaching(2);
//$tpl->xoops_setCacheTime(3600);
//if (!$tpl->is_cached('db:system_rss.html')) {

many thanks

2
Marco
Re:crazy cache on backend.php
  • 2004/10/21 21:41

  • Marco

  • Home away from home

  • Posts: 1256

  • Since: 2004/3/15


up !
any idea ?
my configuration : XOOPS 2.0.7.3 and news 1.2.1

3
Mithrandir
Re:crazy cache on backend.php

Are you trying to retrieve or send RSS feeds?

The headlines module is programmed to save RSS feeds for 24 hours (IIRC) to lessen the load on the RSS sending server.

Let me just lookup this...

The cache time is set in the RSS feed configuration - so you should be able to specify anything from an hour to a month.

Quote:
who can explain me these 3 lines, and what they are used for, and then how to correct them
//$tpl->xoops_setTemplateDir(XOOPS_ROOT_PATH.'/themes');
//$tpl->xoops_setCaching(2);
//$tpl->xoops_setCacheTime(3600);
//if (!$tpl->is_cached('db:system_rss.html')) {


$tpl->xoops_setTemplateDir(XOOPS_ROOT_PATH.'/themes'); sets the template directory, Smarty should use
$tpl->xoops_setCaching(2); enables Smarty caching
$tpl->xoops_setCacheTime(3600); sets cache time to an hour
if (!$tpl->is_cached('db:system_rss.html')) { checks if the system_rss.html is cached by Smarty and only fetches the news stories and rebuilds the RSS feed if it is not (i.e. it is more than an hour since last RSS build)

4
Marco
Re:crazy cache on backend.php
  • 2004/10/22 6:13

  • Marco

  • Home away from home

  • Posts: 1256

  • Since: 2004/3/15


hum, I'm trying to send rss feeds, with core backend.php
another french user has the same mistake
does it come from our data ?
debug mode says nothing on it...

Do theses parameters rely on headline module even if we are speaking about backend.php with news stories in it....?

marco

5
Mithrandir
Re:crazy cache on backend.php

If your problem is that your RSS feed is not built often enough, it is perhaps because of this line:
$tpl->xoops_setCacheTime(3600);
which sets the caching of your RSS feed to one hour.

6
Marco
Re:crazy cache on backend.php
  • 2004/10/22 9:08

  • Marco

  • Home away from home

  • Posts: 1256

  • Since: 2004/3/15


hum, it seems not. I set it to 0, and nothing has changed.

7
Mithrandir
Re:crazy cache on backend.php

If you set it to zero and type the url to the backend.php into your browser, you are not getting a fresh RSS feed?

8
Marco
Re:crazy cache on backend.php
  • 2004/10/22 11:04

  • Marco

  • Home away from home

  • Posts: 1256

  • Since: 2004/3/15


yes, mith, that's it...
hervé is analysing this too, I reported this to the french community
The only things I know is that I'm using news 1.2.1 and XOOPS 2.7.0.3,spotlight too, and that I have some news with active scheduled dates...
I can't remember from when this occur, I'm not sure since news 1.2.1, but I'm not able to confirm that...
thanks for help
marco

9
Mithrandir
Re:crazy cache on backend.php

News version does not affect the RSS feed. Something else must be the problem here, but I cannot see what that should be.

10
hervet
Re:crazy cache on backend.php
  • 2004/10/24 18:31

  • hervet

  • Friend of XOOPS

  • Posts: 2267

  • Since: 2003/11/4


Marco,

As I said on the XOOPS French support site, I had a similar problem because of the content of my news. For example, try to read your own feeds from an RSS reader and you will see that many times, you can't see anything because of an error inside the content, try to analyze your feed with an appropriate feeds analyzer.

Bye,
Hervé

Login

Who's Online

76 user(s) are online (43 user(s) are browsing Support Forums)


Members: 1


Guests: 75


ted91,

more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Aug 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits