postaddictme / instagram-php-scraper

Get account information, photos, videos, stories and comments.
https://packagist.org/packages/raiym/instagram-php-scraper
MIT License
3.08k stars 798 forks source link

annoying phpfastcache instance notice #105

Closed inkrement closed 7 years ago

inkrement commented 7 years ago

I get the following notice from time to time:

PHP Notice:  [Files] Calling many times CacheManager::getInstance() for already instanced drivers is a bad practice and have a significant impact on performances.
           See https://github.com/PHPSocialNetwork/phpfastcache/wiki/[V5]-Why-calling-getInstance%28%29-each-time-is-a-bad-practice-%3F in /home/chris/instagram/vendor/phpfastcache/phpfastcache/src/phpFastCache/CacheManager.php on line 120
not able to create a instagram connection
raiym commented 7 years ago

Are you sure that you use last version of the library? Because I think I fixed this issue back then

On May 4, 2017 10:53, "Christian Hotz-Behofsits" notifications@github.com wrote:

I get the following notice from time to time:

PHP Notice: [Files] Calling many times CacheManager::getInstance() for already instanced drivers is a bad practice and have a significant impact on performances. See https://github.com/PHPSocialNetwork/phpfastcache/wiki/[V5]-Why-calling-getInstance%28%29-each-time-is-a-bad-practice-%3F https://github.com/PHPSocialNetwork/phpfastcache/wiki/%5BV5%5D-Why-calling-getInstance%28%29-each-time-is-a-bad-practice-%3F in /home/chris/instagram/vendor/phpfastcache/phpfastcache/src/phpFastCache/CacheManager.php on line 120 not able to create a instagram connection

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/postaddictme/instagram-php-scraper/issues/105, or mute the thread https://github.com/notifications/unsubscribe-auth/AFb0GcmEKaX7wwQ7t4_JkVduPSWjvaVXks5r2YP8gaJpZM4NQVNX .

inkrement commented 7 years ago

Might be the case. I'll update it, close this issue and reopen it, if it occurs again :)

inkrement commented 7 years ago

Ok, this error still exists in the latest stable composer/packagist version.

inkrement commented 7 years ago

it was my fault. I opened it multiple times