문제

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

Any ideas are greatly appreciated!

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 magento.stackexchange
scroll top