1
ceca69
Re: clear cache from code
  • 2008/6/27 12:58

  • ceca69

  • Just popping in

  • Posts: 7

  • Since: 2003/9/29


Hi, I'm talking to clear the cache of a specific page not all of them.



However after some tests I found this command:

include_once XOOPS_ROOT_PATH.'/class/template.php';
$xoopsTpl = new XoopsTpl();
$xoopsTpl->clear_cache(null,null,'12514');


where the number 12514 is the field tpl_id in the table xoops_tplfile

with a little extra work you can customize your admin part of the module to 'clear' the cache for a specific pages.


Furthermore if you want to 'clear' all the cache of your website it is enough to run:

include_once XOOPS_ROOT_PATH.'/class/template.php';
$xoopsTpl = new XoopsTpl();
$xoopsTpl->clear_all_cache();


carlo



2
ceca69
clear cache from code
  • 2008/6/27 9:11

  • ceca69

  • Just popping in

  • Posts: 7

  • Since: 2003/9/29


Hi!
I have created a module and currently I'm not using any cache.

I want to switch ON the cache but I want also to be able to 'refresh' the cache of a specific template from php code (from an admin page), is it possible?
Can anyone suggest me how to do it ?

I had a look to the core of XOOPS and I found this command:
$xoopsTpl->clear_cache('db:th_std_all_matches.html')

I tried but is not working,I mean the page is still cached.

thanks in advance
Carlo



3
ceca69
Re: XOOPS 2.0.5 => News module
  • 2003/10/18 20:19

  • ceca69

  • Just popping in

  • Posts: 7

  • Since: 2003/9/29


I solved the problem!!!!
I had this problem only with the webserver Xitami...
So, now on I will work with Apache2...

There is anyone that use Xitami !?

Cheers
Ceca



4
ceca69
Re: XOOPS 2.0.5 News 1.1 module problem
  • 2003/10/18 20:16

  • ceca69

  • Just popping in

  • Posts: 7

  • Since: 2003/9/29


I had this problem only with the webserver Xitami...
So, now on I will work with Apache...

There is anyone that use Xitami !?

Cheers
Ceca



5
ceca69
XOOPS 2.0.5 => News module
  • 2003/10/17 15:07

  • ceca69

  • Just popping in

  • Posts: 7

  • Since: 2003/9/29


Hi,
I have installed XOOPS 2.0.5 and the News 1.1 module (that one with the XOOPS zip file).
The only user created is the Webmaster.

Problem:
- Once I have added a News I don't know how to approve it.
- When a News is waiting to be approved (a news created by me) I'm not autorized to modify it.
- How can I set a "big story"

From "News Configuration" I can only delete it.

THX

Ceca



6
ceca69
XOOPS 2.0.5 News 1.1 module problem
  • 2003/10/17 7:53

  • ceca69

  • Just popping in

  • Posts: 7

  • Since: 2003/9/29


Hi,
I have installed XOOPS 2.0.5 and the News 1.1 module (that one with the XOOPS zip file).
The only user created is the Webmaster.

Problem:
- Once I have added a News I don't know how to approve it.
- When a News is waiting to be approved (a news created by me) I'm not autorized to modify it.

From "News Configuration" I can only delete it.

Can anyone suggest me a working News module?

THX

Ceca



7
ceca69
Re: Lost System Icon in the Administration Menu
  • 2003/10/10 14:32

  • ceca69

  • Just popping in

  • Posts: 7

  • Since: 2003/9/29


Hi,
I experienced the same problem with XOOPS 2.0.4;
I deselected through the admin/groups page the SECTION module and the System Icon is gone.

I 'solved' the problem easly with a backup of the database.... eskuel v 1.0.4
But I'm playing with XOOPS at home....
I will test it also with XOOPS 2.0.5

Could anyone tell us why it's happened!?
Thanks in advance!




TopTop



Login

Who's Online

60 user(s) are online (39 user(s) are browsing Support Forums)


Members: 0


Guests: 60


more...

Donat-O-Meter

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

Latest GitHub Commits