I'm looking at JCache->setLifeTime(), and after having it not work as expected, and digging through things and looking at the file storage adapter, what I found is that the interval for setLifeTime() is actually minutes.

That's unexpected. I would have expected seconds myself.

How can I alter the documentation for JCache(Controller)->setLifeTime() to document that the argument is in minutes?


You edit the DocBlock Header in the source code and submit a PR with your fix. (from/to the staging branch)

Here is the file you are looking for: https://github.com/joomla/joomla-cms/blob/staging/libraries/joomla/cache/cache.php

  • I hate open source anymore. In the old days, you just posted an issue and someone fixed. The next evolution was you had to put the issue in their defect tracking system. Now you have to code the fix, and do a pull request. It's become a big giant pain. – George Sexton Apr 30 '16 at 17:57
  • Actually if you don't know how you can always let people know. I prefer Open source since if I make the fix it has a better chance of being accepted and included sooner than if I have to rely on a small handful of people to both consider the issue and fix it. – Walt Sorensen Apr 30 '16 at 20:50
  • By the way, I've submitted the change for your issue github.com/joomla/joomla-cms/issues/10112 – Walt Sorensen May 1 '16 at 0:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.