Topic: pun_admin_clear_cache work but don't show link in footer

hy, i install pun_admin_clear_cache (v1.1.5) but i don't see the link on the footer on any pages.

the extension works good because at the time of installation She delete my chace! Unfortunately she does not show the link in the footer of any pages, and if I want to clear the cache I have to uninstall and reinstall the extension.

My punbb is 1.4.2 with Oxigen theme.

thank you

2

Re: pun_admin_clear_cache work but don't show link in footer

Enable DEBUG mode in config.php

Re: pun_admin_clear_cache work but don't show link in footer

It is possible to delete cache manually?

4

Re: pun_admin_clear_cache work but don't show link in footer

Yes, just remove all files which are located in cache/ folder (which is located in the root of your PunBB forum) except .htaccess and index.html.

Re: pun_admin_clear_cache work but don't show link in footer

Trace wrote:

Yes, just remove all files which are located in cache/ folder (which is located in the root of your PunBB forum) except .htaccess and index.html.


Thank you!

Ok, I want to be sure that i have understand.

Now in my www.blabla.bla/cache folder i have these files:

.htaccess
cache_bans.php
cache_censor.php
cache_config.php
cache_ext_version_notifications.php
cache_hooks.php
cache_pun_colored_usergroup.php
cache_pun_tags_groups_perms.php
cache_stats.php
cache_updates.php

I manually delete all files except .htaccess and cache is clean, and i I do not need the plugin pun_admin_clear_cache. right?

Re: pun_admin_clear_cache work but don't show link in footer

Hello !
This Clear Cache extension does the job correctly even on PunBB 1.4.4. Thank you very much for this development.
But the command is displayed (for the administrator) only if one enables debug mode in config.php.

And if debug mode is enabled, the following information is displayed to everybody :

Généré en 0,027 secondes, 91 requêtes exécutées

How can I hide this info to visitors and display the ClearCache command to administrator ?

https://katryne.legtux.org/
PunBB 1.4.4
PHP: 7.4.12
Base de données    SQLite3 3.16.2

Re: pun_admin_clear_cache work but don't show link in footer

In order to use the Clear Cache button without displaying to public the debug infos, I had to fork the footer.php file. Which is rather stupid, I admit.

In order to use correctly this clear cache function, it could be interesting to separate its display from the other debug info in the footer. Is the Clear Cache extension still maintained ?

And may I ask why the debug infos (when enabled) are displayed to anybody and not only to the administrator ?

https://katryne.legtux.org/
PunBB 1.4.4
PHP: 7.4.12
Base de données    SQLite3 3.16.2

8 (edited by PanBB.Ru 2016-07-16 19:16)

Re: pun_admin_clear_cache work but don't show link in footer

I did not understand the question . You want to show the Clear Cache  button only for the administrator?

Re: pun_admin_clear_cache work but don't show link in footer

No, no ...
The clear-cache button is displayed only to administrator.
But it can be displayed only if Debug Mode is enabled.
And if Debug Mode is enabled, some debug info is displayed in the footer.
http://image.prntscr.com/image/0e7cb5275d824f65ae8bd692cd3b0398.png
And this debug info is displayed to anybody. I think that Debug info should be displayed only to administrators.

https://katryne.legtux.org/
PunBB 1.4.4
PHP: 7.4.12
Base de données    SQLite3 3.16.2

Re: pun_admin_clear_cache work but don't show link in footer

    if (defined('FORUM_DEBUG'))
    {

replace on

    if (defined('FORUM_DEBUG') && $forum_user['is_admmod'])
    {

Re: pun_admin_clear_cache work but don't show link in footer

That is perfect, thank you.
Don't you think that this option should be the rule ? (I mean debug info visible only to admin)

https://katryne.legtux.org/
PunBB 1.4.4
PHP: 7.4.12
Base de données    SQLite3 3.16.2

Re: pun_admin_clear_cache work but don't show link in footer

MaraKat wrote:

That is perfect, thank you.
Don't you think that this option should be the rule ? (I mean debug info visible only to admin)

yes, perhaps. but I can not make changes to offline the core....