Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PreCache 'first page' after Clear Cache #8732

Closed
TLCReuver opened this issue Dec 16, 2023 · 2 comments
Closed

PreCache 'first page' after Clear Cache #8732

TLCReuver opened this issue Dec 16, 2023 · 2 comments

Comments

@TLCReuver
Copy link

Maybe a feature to PreCache the 'First Page' after a Clear Cache.

Since a time i use Cron with Bash to clear the cache & precache the 'first page' for Desktop & Mobile.
The website always load in a split second.

#!/bin/bash

sudo rm -f /var/www/html/www.website,com/videos/cache/Desktop.html
sudo rm -f /var/www/html/www.website,com/videos/cache/Mobile.html

cd /var/www/html/website.coml/install/
sudo php /var/www/html/website/install/clearCache.php

wget https://www.website.com -O /var/www/html/www.website.com/videos/cache/Desktop.html

wget --debug --header="User-Agent: Mozilla/5.0 (Android 13; Mobile; rv:120.0) Gecko/120.0 Firefox/120.0" https://www.website.com -O /var/www/html/www.website.com/videos/cache/Mobile.html

@DanielnetoDotCom
Copy link
Member

the problem on the auto pre-cache first page is that the cache is different depending on the language. depending on the idiom selected the cache will be different

@TLCReuver
Copy link
Author

Too bad, I hadn't thought about that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants