Cache-Monster icon indicating copy to clipboard operation
Cache-Monster copied to clipboard

Initiate the warming task

Open zizther opened this issue 7 years ago • 3 comments

Is it possible to initiate the warming task from an action URL or for it to be called via another plugin action?

zizther avatar Jan 09 '17 22:01 zizther

@joshangell is there a reason crawlAndWarm is not a service? If not, would you accept a pull-request to move it to a service and convert the controller action to just something like this: craft()->cacheMonster->crawlAndWarm($sitemap_url);

This way @zizther and me could also call this from another plugin. Which is exactly what I'm writing right now :)

maxstrebel avatar May 10 '17 07:05 maxstrebel

Hi @maxstrebel, I'm afraid I don't maintain this any more, but your PR sounds reasonable to me. @nav33d will be the one to decide though :)

joshangell avatar May 15 '17 15:05 joshangell

@maxstrebel You are always welcome to submit a PR. I would get it merged.

Many thanks

Nav33d avatar May 18 '17 08:05 Nav33d