[squid-users] Is it possible to modify cached object?
Amos Jeffries
squid3 at treenet.co.nz
Mon Jan 9 06:38:45 UTC 2017
On 9/01/2017 8:41 a.m., Rafael Akchurin wrote:
> Hello Boruc,
>
> Please use https://en.wikipedia.org/wiki/Data_URI_scheme
>
boruc:
Also you should not be manually (or even with a Script) editing cache
objects on disk as a routine operation. As Alex already mentioned use
ICAP or eCAP adaptation for that instead - thats one reason why those
adaptation APIs exist.
As I noted in the other email you have to fully stop Squid and restart
with a VERY SLOW full-disk scan of the cache after editing disk objects
to prevent the metadata being mismatched and your edit thrown away. So
dont do it unless its a one-off situation. Even then simply deleting the
bad object and letting Squid find a new copy on next request is better
than editing.
Amos
More information about the squid-users
mailing list