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
--
ShivaGoudarzi - 12 Feb 2008
Answer
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