• Resolved andreakappa

    (@andreakappa)


    Hi,
    in your code I’ve seen these lines before and after transient set/get:

    Before setting :
    $instagram = base64_encode( serialize( $instagram ) );

    After getting:
    $instagram = unserialize( base64_decode( $instagram ) );

    Now, according to set_transient documentation, serialization is not needed before insertion, thus even the base64 encoding it’s not needed.

    Thank you

    https://www.ads-software.com/plugins/wp-instagram-widget/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Unneeded serialization and base64 encoding’ is closed to new replies.