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

Cache system for skin #9

Merged
merged 5 commits into from
Apr 24, 2018
Merged

Cache system for skin #9

merged 5 commits into from
Apr 24, 2018

Conversation

PHPierrre
Copy link
Member

No description provided.

@Eywek Eywek self-requested a review April 23, 2018 17:29
return base64_encode($content);
}, 'skin');

if (empty($content))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pour le coup, il vaudrait mieux récupérer le cache en premier, si il existe pas / est expiré fallback sur l'API de Mojang.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'engine' => $engine,
'prefix' => $prefix,
'path' => CACHE . 'skins' . DS,
'duration' => $duration
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Il faudrait donc ici mettre une durée pas trop longue, de quelques heures je pense

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2 heures actuellement

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok parfait pour ça alors

@Eywek Eywek merged commit 20e8994 into MineWeb:development Apr 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants