Giter Site home page Giter Site logo

Session Cache grows until never about sso HOT 3 CLOSED

jasny avatar jasny commented on July 3, 2024
Session Cache grows until never

from sso.

Comments (3)

jasny avatar jasny commented on July 3, 2024

There is already an issue open for this with desarrolla2/cache. Please consider providing the project with a Pull Request. Personally I think a cron job is a much better job to remove these files.

Most adapters don't need to implement that method, since they support TTL.

If you want to use a different PHP-cache libary or your custom cache solution, you can do so easily by extending the class and overwriting createCacheAdapter(). You just need an object that implements get(string $name) and set(string $name, mixed $data).

Alternatively, if you're creating 25000 temp files per day, consider using an alternative storage. Preferably one that support TTL out of the box like memcached.

In any case no, this is not a concern of the SSO library.

from sso.

infabo avatar infabo commented on July 3, 2024

Nice writeup.

Like I already said: consider replacing the desarolla-cache library.
Desarolla cache seemed and seems unmaintained to me, so that's why I posted here ("implement cleanup or replace the lib").

No, I won't provide a PR to desarolla cache (unmaintained and I hate making PRs which are not going to be merged - ever). Going to replace the lib.
Cleanup-cronjobs. What about placing the cache-files in /tmp (resides in RAM) and do a daily reboot? Great!

from sso.

jasny avatar jasny commented on July 3, 2024

@infabo PRs will get merged. I shoot in PRs all the time.

Which other cache library are you thinking of?

from sso.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.