Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a limit on how frequently a cache purge can occur #6

Open
tboothman opened this issue Dec 7, 2014 · 1 comment
Open

Add a limit on how frequently a cache purge can occur #6

tboothman opened this issue Dec 7, 2014 · 1 comment

Comments

@tboothman
Copy link
Owner

Cache purging occurs every time an imdb class is created. This is hugely wasteful, especially if there are lots of cache files.

Either remember the last purge time across requests and only do a purge every x hours or make sure it only happens once per request.

in imdb_cache.class.php, line 94

@IzzySoft
Copy link
Collaborator

IzzySoft commented Jan 3, 2015

Alternatively, do it the way PHP itself deals with its session files: Leave purging to a Cron job. Not sure how that's done on a Windows machine, though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants