-2

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

Any ideas are greatly appreciated!

3
  • You need to provide a LOT more information. What are you trying to do exactly? Commented Feb 19, 2013 at 11:42
  • There is a german blog article, maybe it helps, there are a few code fragments between to generate URLs and use curl to ping them all: webguys.de/magento/adventskalender/… Commented Feb 19, 2013 at 11:57
  • Isn't this function best performed by varnish-cache.org or similar?
    – Ralph Tice
    Commented Feb 19, 2013 at 23:16

1 Answer 1

3

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.

2
  • I would post that link up on Github or someplace else reputable to review the code before downloading and unpacking a random tar.
    – philwinkle
    Commented Feb 19, 2013 at 14:40
  • 2
    I have updated my answer with a link to a new Github repo.
    – Kenny
    Commented Feb 19, 2013 at 15:01

Not the answer you're looking for? Browse other questions tagged or ask your own question.