• Resolved polo12

    (@polo12)


    I was checking the default recent posts widget in wp-includes/default-widgets.php and noticed that it is cache enabled. But while editing the file on NuSphere IDE , i found that the cache doesn’t work i.e. the isset( $cache[ $args[‘widget_id’] ] ) returns false each time. Is there a way to enable caching?

Viewing 1 replies (of 1 total)
  • Thread Starter polo12

    (@polo12)

    Ok, first of all, the cache is stored only for the current script execution. I put a loop to execute the widget() twice and realized that the cache actually works for the same widget instance. Therefore, a memcached type plugin might successfully do the caching required. 🙂

Viewing 1 replies (of 1 total)
  • The topic ‘How is caching enabled in WordPress’ is closed to new replies.