Jump to content
xisto Community
Sign in to follow this  
k_nitin_r

Wordpress Cache Expires

Recommended Posts

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 by k_nitin_r (see edit history)

Share this post


Link to post
Share on other sites

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

@mahesh2k
Hi 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-cache
2)wpCache


Share this post


Link to post
Share on other sites

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.