Announcement

#1 2021-01-24 13:02:04

dsl25
Member
2021-01-22
37

[resolved] Caching

How is cache supposed to work by default?
Is there a server side cache enabled or an extension for large collections?

Offline

 

#2 2021-01-24 16:26:14

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13789

Re: [resolved] Caching

Hi dsl25,

There are several levels of cache in Piwigo. Are you talking about something specific?

Offline

 

#3 2021-01-25 03:41:32

dsl25
Member
2021-01-22
37

Re: [resolved] Caching

Hi, no nothing specific but I just setup a large gallery (of about 15k images under several folders and sub-folders) that will be "frozen" at current state forever. Meaning there won't be any new images added any time soon and no other changes in current structure for a long time.

It's a sort of family archive.

I was wondering whether there is way to speed-up initial loading of thumbs by having them create caches on server - something like that but no precise idea.

Last edited by dsl25 (2021-01-25 04:21:36)

Offline

 

#4 2021-01-25 11:38:55

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13789

Re: [resolved] Caching

1) 15k photos is not "large". For Piwigo at least ;-)
2) thumbnails are stored as cache in _data/i directory

Offline

 

#5 2021-01-25 16:33:05

dsl25
Member
2021-01-22
37

Re: [resolved] Caching

Thanks for this.

But when are those cache generated.
Is there a way to generate them manually without visiting the pages?

Offline

 

#6 2021-01-25 16:50:11

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13789

Re: [resolved] Caching

dsl25 wrote:

But when are those cache generated.

When someone visits the page (but I think you had already understood that)

dsl25 wrote:

Is there a way to generate them manually without visiting the pages?

Yes, you can use the appropriate action "generate multiple size" in the photo Batch Manager.

Offline

 

#7 2021-01-26 11:17:16

dsl25
Member
2021-01-22
37

Re: [resolved] Caching

Great, many thanks!

Offline

 

#8 2021-01-27 11:47:26

dsl25
Member
2021-01-22
37

Re: [resolved] Caching

One more related question if you don't mind:

When running "generate multiple size": does this operation skip existing thumbs in cache or re-creates them?

Offline

 

#9 2021-11-20 22:09:29

endrju83
Member
2020-10-11
11

Re: [resolved] Caching

I am wondering why my Cache size is still 0 even when some users already visited a bunch of picures. I am also observing that my Piwigo is slower then before upgrade from ver. 11 (I often got error 503). Any idea what I should check? No Apache/PHP setting were changed.
https://i.ibb.co/0ykq0VW/Cache1.jpg
Some multiple size images was also regenerated. Size is not any big (I have deleted all sizes because of the backup before upgrading from ver.11 to ver.12)
https://i.ibb.co/6WVvJSD/Cache2.jpg

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact