José Miguel
Forum Replies Created
-
Hello @willstockstech,
Are you using any CDN?
To confirm see if you can get the exipres applied:
<IfModule mod_expires.c>
ExpiresActive Off
</ ifModule>Hello @willstocks,
Yes, it’s weird!
https://willstocks.co.uk/wp-content/uploads/optimum-gravatar-cache/avatar/2.jpg
However, it is sent, the header ‘expires’:
expires Wed, 21 Nov 2018 23:12:21 GMT
It looks like the following code is not being applied:
<IfModule mod_expires.c>
ExpiresActive Off
</ifModule>See the headers that my server sends to this gravatar:
https://static.ncdc.pt/cache/avatar/l.pngHello @willstocks,
In the version I am developing at the moment already supports wiping the posts containing a particular gravatar that has been updated. Only works with WP Super Cache at the moment, in the future will support more plugins. This is only necessary in the case of using query strings. If using the .htaccess proposed by the plugin works with any cache.
Hello @willstocks,
I’ve been testing your site and noticed that it has corrupted gravatars in some sizes. I advise you to clear the cache. You should not manipulate the files manually.
I’m already working to support cache plugins like the super cache. When a gravatar is updated it will clear the cache where a particular user has commented or is the author of the post. At the moment it is already working with WP Super Cache, but I intend to support others in the future.
What cache plugin do you use?
The background task runs every 5 minutes(Check for outdated Gravatars every), looking for gravatars that have more than one day (Refresh Gravatar cache every) in the local cache.
Select 100 users(Number of users to check simultaneously) who have more than one day in cache, to verify if your gravatar in gravatar.com has been updated and if yes update the cache locally.
Maybe it’s not the best phrases to explain each option. But their functions are as follows.
“Refresh caches cache every: 1 days” is the time that the copy of a given gravatar should be cached locally.
“Search for outdated avatars every: 5 minutes” is the length of time that jobs in the background should run. Looking for graves that should be updated.
“Number of users to check simultaneously: 100” is the number of gravatars that must be updated in the previous process, each time.
However if you want to rush things.
Edit the plugin file and substitute it in line 1859:$time=time()-$this->expireTime * 86400;//86400 1 day
per
$time=time()-$this->expireTime * 1;//86400 1 dayand wait a while that the cache will start updating all the gravatars.
Will now just wait a day or two and will check that it has been updated.
Do not clean your cache now, otherwise you’ll go back to the beginning.“Sync users and commenters now” only announces the email of users and commentators to the plugin, however their avatars will be built in the background.
The dates “?d=151120181430” are converted to base 35 “?d=tcmsvx” to save characters, but does the same job.
In principle yes, but it is necessary to experiment, there may be some incompatibility with the modules on your server.
I can help solve if there is a problem.
Yes, it in principle overrides the top-level .htaccess rules.
Hello @willstockstech
I’m fine thank you!
I’ve analyzed how your gravatars are being served.
From what I’ve noticed from the server’s response headers, it caches the gravatar for about a month:date: Thu, 15 Nov 2018 09:46:46 GMT
content-type: image / jpeg
content-length: 9200
last-modified: Tue, 13 Nov 2018 14:49:03 GMT
etag: “23f0-57a8ceb2a95c0”
cache-control: max-age = 2592000
expires: Sat, 15 Dec 2018 09:34:09 GMTWith this configuration it will not be possible to present to users an updated gravatar in a maximum of two days.
I recommend trying the “query string” option.
I have an account on gravatar.com that I use for testing in the plugin, I update regularly and it changes perfectly.
I’m not saying it can not be a bug.
To try to understand where the problem comes from is this:
1. Update the gravatar again on gravatar.com;
2. Let 3 days pass;
3. Check via ftp if the gravatar in your cache directory has been updated.If the gravatar was not updated in your cache directory can be a problem with the plugin, if it was updated is certainly a problem with the server cache configuration.
Forum: Plugins
In reply to: [Optimum Gravatar Cache] v1.3.0 has broken wp-adminI have another plugin to share in the future would be a great help in translations.
Thanks for the time spent!
Forum: Plugins
In reply to: [Optimum Gravatar Cache] v1.3.0 has broken wp-adminYes, I have corrected the mathematical part but not the English.
I’m going to clean up!
I’m going to make the modifications then I have to test with wordpress 5 before launching version 1.3.4.
Thank you!