wanze / statamic-super-static-cache

Statamic 2 addon extending the static cache with additional features such as disabling caching for authenticated users.
https://statamic.com/marketplace/addons/super-static-cache
MIT License
4 stars 1 forks source link

Warmup command completes successfully, but doesn't produce any files. #6

Open HarryFrancis opened 4 years ago

HarryFrancis commented 4 years ago

Hello :)

I have setup this plugin on both my local and staging server, but I'm running into problems when running the super_static_cache:warmup command.

$ php please super_static_cache:warmup Warming up your static cache... http://localhost/ http://localhost/about http://localhost/blog http://localhost/gallery http://localhost/things http://localhost/contact [✓] The static cache has been generated!

I then go to the site root and can't find any files, could it be related to it looking for 'http://localhost/gallery' when that isn't the site URL? If so, how can I update this?

Thanks, Harry.

wanze commented 4 years ago

Hi @HarryFrancis

Can you add the full domain in site/settings/system.yaml under locales.<YOUR_LOCALE>.url ? The problem is that Statamic cannot resolve the HTTP host in the context of the command line.

The addon should probably include a setting to set the base url manually.

Cheers