Loading...
 
Features / Usability

Features / Usability


Search refresh hack

posts: 3

Hello, I'm new to tikiwiki, and am in the process of setting up a new site. So far all is working well. However I found that the search function did not work on new pages until I'd log in as admin and click 'Refresh wiki search index now' in the admin - search. So I added these lines to tiki-editpage.php at line 759.

require_once('lib/search/refresh-functions.php');
refresh_index_wiki_all();

It seems to work, refreshing the search index every time a page is saved.

Does anyone see a problem with this hack? If so, is there a better solution?

Thanks,
Jonathan Hutton

posts: 2

Thanks for your post Jonathan. We are using TW 1.11 and we are experiencing the exact same problem. Would it be possible for you to post a few lines before and after your hack so we can identify where in the 1.11 version of tiki-editpage.php we should insert your hack and try it out?

Many thanks!

/Phil


posts: 1

Thanks for this post.

But you can also run it as a cron job. Just make sure you install some php cli utility.

Image
Copy to clipboard

Upcoming Events

1)  18 Apr 2024 14:00 GMT-0000
Tiki Roundtable Meeting
2)  16 May 2024 14:00 GMT-0000
Tiki Roundtable Meeting
3)  20 Jun 2024 14:00 GMT-0000
Tiki Roundtable Meeting
4)  18 Jul 2024 14:00 GMT-0000
Tiki Roundtable Meeting
5)  15 Aug 2024 14:00 GMT-0000
Tiki Roundtable Meeting
6)  19 Sep 2024 14:00 GMT-0000
Tiki Roundtable Meeting
7) 
Tiki birthday
8)  17 Oct 2024 14:00 GMT-0000
Tiki Roundtable Meeting
9)  21 Nov 2024 14:00 GMT-0000
Tiki Roundtable Meeting
10)  19 Dec 2024 14:00 GMT-0000
Tiki Roundtable Meeting