Tags:
create new tag
view all tags

Question

Relative to the LdapContrib Plugin, how do we default the “$TWiki::cfg{Ldap}{MaxCacheAge}” value to infinite, so that it never updates the cache. This value is under ‘Performance settings’ (Maximum time a cache is kept; default is 86400 seconds)

Environment

TWiki version: TWikiRelease04x02x00
TWiki plugins: LdapContrib v2.99.3
Server OS: Red Hat Enterprise Linux 4.0
Web server: Apache 3
Perl version: 5.0XX
Client OS: MS Windows XP
Web Browser: IE
Categories: Authentication, Performance, Contributing code, Plugins

-- ShivaGoudarzi - 12 Feb 2008

Answer

ALERT! If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.

To disable automatic cache aging you have to set it to 0:

$TWiki::cfg{Ldap}{MaxCacheAge} = 0;

-- MartinKaufmann - 12 Feb 2008

That is exactly what we have set; unfortunately, it is not having the desired effect.

-- ShivaGoudarzi - 12 Feb 2008

So even after setting your MaxCacheAge to 0, your cache is still updated daily? Which TWiki version and LdapContrib version are you using?

-- MartinKaufmann - 13 Feb 2008

We are using TWiki v4.2.0 and LdapContrib v2.99.3; and yes, our cache updates daily, and at random times, despite our setting the MaxCacheAge to 0.

-- ShivaGoudarzi - 13 Feb 2008

I don't know enough about LdapContrib internals (to be honest, I don't know anything at all...) but it might be best to raise a bug.

If you just want to make sure that the cache is never updated automatically and don't mind hacking the perl code, just uncomment the following line (should be about line 568) of lib/TWiki/Contrib/LdapContrib.pm:

$this->refreshCache();

-- MartinKaufmann - 14 Feb 2008

I can confirm this bug. Filed as Bugs:Item5365, also reported at DisableLdapContribBuildingOfOwnCache. Will be fixed in next release.

-- MichaelDaum - 14 Feb 2008

Fixed in latest release 2.99.4

-- MichaelDaum - 14 Feb 2008

Change status to:
Edit | Attach | Watch | Print version | History: r7 < r6 < r5 < r4 < r3 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r7 - 2008-02-14 - MichaelDaum
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.