Quantcast
Channel: wp-super-cache – WordPress.org Forums
Viewing all articles
Browse latest Browse all 3480

Strictly Software on "[Plugin: WP Super Cache] A way of adding a hardcoded homepage into the cache"

$
0
0

I have a horse racing based WP site where I have built the homepage outside the WordPress framework so that it doesn't include all the WP includes and instead is a standalone PHP page (with a class behind) that loads different sections of the page in one by one e.g latest news, results, prices, scroller content and other information.

All these different pieces of data come from either remote feeds or my database but I am using my own caching system which holds each bit of information in a separate file for 5-15 minutes (depending on the data) so that it is "cached" and not reloaded from the remote source or DB every time the page loads.

I also have a JS based "countdown" clock to the next race and it refreshes the page when it gets down to 00:00:00.

However I am wondering whether there is a way I could add the whole HTML into the same WP Super Cache caching system so that the whole page is cached at once and when it's contanstly accessed instead of lots of little cached pieces of content being checked and reloaded or loaded from my own cache, the whole HTML is loaded instead.

Ideally I would like to minify the JS, CSS and HTML and make it a static HTML page.

I am thinking of writing my own code to do this but I thought I would ask first if there was a way I could (through PHP calls) load my HTML into your caching system.

At the moment the page sits in my theme folder and is not being touched by your caching system ( the "test home page" cache function proves this because the dates are different between the 2 loads )

Is there an easy way for me to add this homepage into the cache and set a time on it shorter than other pages to flush and reload it?

Thanks

https://wordpress.org/plugins/wp-super-cache/


Viewing all articles
Browse latest Browse all 3480

Trending Articles