Question

I am interested in rendering a page programmatically via URL so that it is stored in the cache...

Any ideas are greatly appreciated!

Was it helpful?

Solution

If you have access to the command-line you can use wget or curl to load the page. (Given the fact that the page is accessible via a url)

wget http://domain.com/page/that/you/want/to/load.html?really

OR

curl  http://domain.com/page/that/you/want/to/load.html?really >/dev/null 2>&1

As mentioned in the comments you still need to provide more information. My only guess would be that you are writing some kind of cache-warmer applications that loads several pages to store them in the cache?

EDIT: Here is a nice little web based application (PHP) that I wrote in the past that does what you need.

Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange
scroll top