k_nitin_r 8 Report post Posted May 15, 2009 (edited) Hi! I'm trying to figure out how to configure the WordPress cache. What I do not want to do is install a caching plugin, but rather use the functionality built into WordPress. I want to be able to cache content for a specific interval, rather than have it indefinitely remain in cache, such that new content can be served within a short time. Any help with this would be appreciated. -Nitin UPDATE: I found what I was looking for on the WordPress codex resources. https://codex.wordpress.org/Function_Reference/WP_Cache is the link if anyone else is looking for a solution. Edited May 15, 2009 by k_nitin_r (see edit history) Share this post Link to post Share on other sites
mahesh2k 0 Report post Posted May 16, 2009 I suggest you to use WP-Super-Cache for your website. and if you wish to produce simmilar result, study the plugin on your own machine and try to understand the code. By reading code you can learn how that is accomplished. So it is better to check the plugins as means to study. Otherwise it will take a lot of time and you're hitting wall right now as more and more in depth you're going for the wordpress. Try these Wordpress plugins:1)WP-Super-cache2)wpCache Share this post Link to post Share on other sites
k_nitin_r 8 Report post Posted May 16, 2009 @mahesh2kHi Mahesh!Thanks for the info. As I mentioned, I'm not looking for plugins to install yet because what they do is override the functions provided by WordPress and hook up to WordPress filters/actions.What I am trying to do instead is use a function that has already been defined, such that I can cache data (within my plugin code) while I'm retrieving it from the database.I appreciate your inputs though, and I certainly will buzz you back when I go down the path of overriding the default WordPress caching behavior, but that's a discussion for another thread.Regards,Nitin I suggest you to use WP-Super-Cache for your website. and if you wish to produce simmilar result, study the plugin on your own machine and try to understand the code. By reading code you can learn how that is accomplished. So it is better to check the plugins as means to study. Otherwise it will take a lot of time and you're hitting wall right now as more and more in depth you're going for the wordpress. Try these Wordpress plugins:1)WP-Super-cache2)wpCache Share this post Link to post Share on other sites
iGuest 3 Report post Posted January 7, 2010 Hi, Try This one in wp-config.Php define('WP_CACHE','enable'); This is the variable which will enable caching functionality of the wordpress. And please let me know ... Actually I am also using the wp-super-cache for caching ... Thanks, Taral Oza -reply by Taral Share this post Link to post Share on other sites