Forums

wp_cache expiring too quickly ? (1 post)

  1. linickx
    Member
    Posted 2 years ago #

    Hi I'm caching a response from another server in a custom plugin... Caching is working, and I have set up the following.

    $timenow = time();
    $myexpire = 60 * 60 ; // Cache data for one hour (3600 seconds)
    wp_cache_set('time', $timenow, 'stuff', $myexpire);

    But I'm finding that the cache is updating every 15mins or so, can anyone thinks of any reason why ?

    Cheers,
    Nick

Topic Closed

This topic has been closed to new replies.

About this Topic