external RSS feed from cache broken
-
I’m displaying external RSS feeds on my site using the fetch_rss function. With WP’s magpierss implementation (rss.php) the feed gets cached in the wp_options table.
Reading back the feed from the cache, fetch_rss does not supply an array, but a string (that’s how the initial feed is stored in the wp_options table, since mysql does not accept arrays).
Possible fixes:
— don’t cache {don’t like that because of potential load on external servers}
— hack rss.php to unserialize the string it gets from the wp_options table before returning it
— “unserialize()” what I get back from fetch_rss seems not possibleor is there actually some sort of type problem with the maybe_unserialize() function itself in functions.php?
I’m wp 2.7.1 on php 4.4.4 with mysql 4.1.21
The topic ‘external RSS feed from cache broken’ is closed to new replies.