That partial is on all pages that display a list of topics ie /recent /unread /popular and /category pages. You need to create a plugin and add hooks for those pages the hook format is filter:<template_name>.build in those hooks you need to go through the topics array and subtract one from each topic's postcount.
Clear template cache ?
ffmad last edited by ffmad
I am doing a lot of changes on my nodebb forum http://www.cryptofr.com where I modify a custom theme module.
(For example, i've changed the way the home page is shown)
Starting/stoping nodebb isn't enough so i have to tell my users to clear cache manually (not good)
My question is: how can you clear the template cache ?
i've used some CMS like EzPublish where you could do that, but i didn't find a way for NodeBB
hey good job so far on your theme looking good!
I've added an issue for this https://github.com/NodeBB/NodeBB/issues/1844
ffmad last edited by
@psychobunny i've added a comment on github
thank you for the theme ^^
i will have to do a lot more because members are always asking new things ^^'
This problem has not been solved?
I still have to constantly clean the cache.
Maybe something I do not understand?
Okay, I found the solution:
removed line - npm i nodebb-theme-vanilla nodebb-theme-lavender nodebb-widget-essentials
Now the templates are not updated. (I have changed theme and it would be cancel changes.)
I perform the command ./nodebb upgrade
I perform the command ./nodebb restart
Now all the people will be taken new changes.