Creating cache file from Instagram API Class
问题 I'm working with Cosenary Instagram PHP API Classes to fetch photos from instagram and try to create cache file to improve speed. Below is the snippet but it doesn't worked. include('conf.php'); require 'bigflannel-instafeed/data/instagram.class.php'; // Initialize class $instagram = new Instagram($accessToken); $instagram->setAccessToken($accessToken); $contents = $instagram->getUserMedia($userID,$settings['count']); $cache = './instagram.json'; if(file_exists($cache) && filemtime($cache) >