Support » How-To and Troubleshooting » set_transient() not working?

set_transient() not working?

  • hi,

    I am very interested in creating persistent cache objects within my custom plugins yet, I can’t seem to get this to work at all:

    set_transient( 'test_object', 'test_value', 0 );

    Shouldn’t this create 2 rows in the wp-options table? No rows are being written to the table I also can’t get this to return any value either:

    get_transient( 'test_object' );


Viewing 1 replies (of 1 total)
  • Hello All,

    I am also facing problem with transient. It was working before but now it is not working. I am searching but still I could not found the reason.

    Could anyone help me?

Viewing 1 replies (of 1 total)
  • The topic ‘set_transient() not working?’ is closed to new replies.