• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to add new forums directly?  RSS feed

 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Good day,

at first let me tell thank you for your jForum.

I am trying to create automatic creation of Forums.
New forum should be created automatically by my application.
I got connection to jForum's MySQL DB and I am trying to create/add new forums into jforum_forums table (also I tried to perform queries directly from MySQL client). There are no effect.
jForum's web UI still show an older list of forums, without created one.

Can you please provide me some suggestion?

Thank you.
[originally posted on jforum.net by krampfmann]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm no expert in it - monroe or raphael may tell more details from the scratch, but as far as I know this has to do with the caching mechanisms.

JForum doesnt reload databasecontent regularly but only on demand. Until then it will always show the same list of forums. I'd have a look at the code where it gets to "create new forum"... and see which methods are being called that are updating the cache of forums.

Not sure if there's also some setting in the admin panel that would prevent caching of certain features ...
[originally posted on jforum.net by Sid]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks, yes I know about jForum's cache.

I tried to disable some properties at \WEB-INF\config\SystemGlobals.properties

topic.cache.enabled = false
security.cache.enabled = false
posts.cache.enabled = false

There are no effect.

Also I disabled net.jforum.repository.ForumRepository item in cacheable.objects list (the same SystemGlobals.properties).
After that disabling I faced jForum's exceptions.

Raphael, Monroe, can you please provide some suggestions?

Thank you
[originally posted on jforum.net by krampfmann]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
FWIW, the caching system is best left on for performance reasons.. plus I don't think that all the turn on/off options have been fully tested (and in some cased not implimented).

The best way to automatically do things with jForum is via something that interacts with the jForum admin forms. E.g., simulate the post action with the data expected to be supplied by that displayed admin form.

See my bookmarks for some postings on using the HTTPClient for this. Also search the forums since I know there are some others discussions out there.
[originally posted on jforum.net by monroe]
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!