Title: Cache problem
Last modified: August 22, 2016

---

# Cache problem

 *  Resolved [Film Complet En Francais](https://wordpress.org/support/users/film-complet-en-francais/)
 * (@film-complet-en-francais)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/cache-problem-11/)
 * I chose to store cache in WordPress MySQL database, but when I switch back to
   store cache as files, movie information isn’t displayed anymore, if switched 
   to database option it works again. Cache files created on the server are not 
   empty and contain all the information, but the information is not displayed anymore.
 * This problem exists only with posts that were loaded while an option to save 
   cache in database was selected.
 * [https://wordpress.org/plugins/imdb-connector/](https://wordpress.org/plugins/imdb-connector/)

Viewing 10 replies - 1 through 10 (of 10 total)

 *  Plugin Author [thaikolja](https://wordpress.org/support/users/thaikolja/)
 * (@thaikolja)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/cache-problem-11/#post-5379867)
 * I don’t really get your last sentence. What do you mean with “loaded”? Created/
   saved in the admin area?
 * When I test the plugin on my servers, it works fine, with both caching modes.
   Can you tell me a bit more about your setup/code?
 *  Thread Starter [Film Complet En Francais](https://wordpress.org/support/users/film-complet-en-francais/)
 * (@film-complet-en-francais)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/cache-problem-11/#post-5379881)
 * I use this code to display movie rating:
 *     ```
       $imdbid = get_post_meta(get_the_ID(),'imdb-id',true);
       $connector_movie = get_imdb_connector_movie($imdbid);
       echo $connector_movie["imdbrating"]
       ```
   
 * When I first updated plugin to v0.3 I chose an option to store cache in database,
   but later I switched it back to file mode. Now some movie posts do not display
   any information (rating, runtime) while in file mode, but work fine in database
   mode.
    I get this problem only with some movies, others work fine with both caching
   modes. I tried deleting cache, but it didn’t fix the problem.
 * Movies that give me this problem:
 *     ```
       tt2802154
       tt2294449
       tt1646971
       ```
   
 *  Thread Starter [Film Complet En Francais](https://wordpress.org/support/users/film-complet-en-francais/)
 * (@film-complet-en-francais)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/cache-problem-11/#post-5379891)
 * What I meant by “loaded” is that I visited those movie posts on my website while
   cache database storing option was enabled. Only those posts seem to be affected.
   
   I can’t seem to replicate this problem with other movie posts anymore.
 *  Plugin Author [thaikolja](https://wordpress.org/support/users/thaikolja/)
 * (@thaikolja)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/cache-problem-11/#post-5379901)
 * That’s weird because I can’t seem to reproduce that bug. Is there an error when
   you enable debug mode? Is the result the same when using get_imdb_connector_movie_detail()?
   Have you tried clearing the plugin cache?
 *  Thread Starter [Film Complet En Francais](https://wordpress.org/support/users/film-complet-en-francais/)
 * (@film-complet-en-francais)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/cache-problem-11/#post-5379916)
 * The result is exactly the same with get_imdb_connector_movie_detail(). I don’t
   get any errors, but when I choose to cache movie details with poster then it 
   gives me an error `The movie tt2802154 could not be found. Please check your 
   spelling`. Everything works fine with database caching mode enabled, it’s just
   I can’t switch back to file caching mode due to those few movies not working.
   An yes, I tried deleting cache through plugin settings and manually through ftp.
 *  Plugin Author [thaikolja](https://wordpress.org/support/users/thaikolja/)
 * (@thaikolja)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/cache-problem-11/#post-5379920)
 * Alright, I think I know why. If you look at the JSON of, for example, tt2802154,
   you’ll see that it contains double quotes in the plot description that aren’t
   escaped (\”) and destroy the whole format, making it unable to convert it intro
   an array.
 * I’m going to upload the update in a minute, let me know if that worked for you.
 *  Thread Starter [Film Complet En Francais](https://wordpress.org/support/users/film-complet-en-francais/)
 * (@film-complet-en-francais)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/cache-problem-11/#post-5379921)
 * Also I tried disabling caching and all I get is `"`
 *  Plugin Author [thaikolja](https://wordpress.org/support/users/thaikolja/)
 * (@thaikolja)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/cache-problem-11/#post-5379923)
 * Oh, and don’t forget to empty the cache since the escaping will only be applied
   to NEW movie details.
 *  Thread Starter [Film Complet En Francais](https://wordpress.org/support/users/film-complet-en-francais/)
 * (@film-complet-en-francais)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/cache-problem-11/#post-5379941)
 * Both caching modes are working now. Thank you.
    BTW, I noticed another problem.
   When caching is disabled only quotation mark is displayed instead of information:`"`
 *  Plugin Author [thaikolja](https://wordpress.org/support/users/thaikolja/)
 * (@thaikolja)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/cache-problem-11/#post-5380013)
 * Yeah, you’re right, I forgot that part. Just fixed it, gonna upload the fixed
   version in a few minutes. Thanks for all your help.

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘Cache problem’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/imdb-connector_bac675.svg)
 * [IMDb Connector](https://wordpress.org/plugins/imdb-connector/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/imdb-connector/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/imdb-connector/)
 * [Active Topics](https://wordpress.org/support/plugin/imdb-connector/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/imdb-connector/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/imdb-connector/reviews/)

 * 10 replies
 * 2 participants
 * Last reply from: [thaikolja](https://wordpress.org/support/users/thaikolja/)
 * Last activity: [11 years, 7 months ago](https://wordpress.org/support/topic/cache-problem-11/#post-5380013)
 * Status: resolved