Is it possible to render a page programmatically via url? [closed]
-
16-10-2019 - |
سؤال
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.
لا تنتمي إلى magento.stackexchange