Announcement

  •  » Engine
  •  » "local" directory versus "_data" directory

#16 2012-06-27 16:17:37

flop25
Piwigo Team
2006-07-06
6829

Re: "local" directory versus "_data" directory

I didn't code that part but normally the script check if the file exists, and if not generate : so you should be able to generate locally in _data/i/...-suffix.ext and upload it. You might have not used the correct suffix, or path


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

#17 2012-06-27 16:36:49

deserteagle
Translation Team
2012-01-13
18

Re: "local" directory versus "_data" directory

I'm sure the file name and path are correctly, I tried 3 times.

I copy my thumbnail in the cache folder and keep watch it, then, I click the related album, I saw the size of thumbnail files in the cache folder changed one by one, them all thumbnail of that album show up.

Yes, it generated thumbnail again even there were.


Uploaded Images


life is a journey.
Eagle

Offline

 

#18 2012-06-27 16:45:13

flop25
Piwigo Team
2006-07-06
6829

Re: "local" directory versus "_data" directory

ok
I'm looking at the code and i see only one thing :
      if ($mtime===false or $mtime < $params->last_mod_time)
      {
        $is_cached = false;
I notify the developer of that part


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

#19 2012-06-28 12:56:20

deserteagle
Translation Team
2012-01-13
18

Re: "local" directory versus "_data" directory

so, Is there a way to pre generate multisize cache photos when upload by ftp?

I use ftp because I'd like to keep the structure of album.


life is a journey.
Eagle

Offline

 

#20 2012-07-02 05:17:47

deserteagle
Translation Team
2012-01-13
18

Re: "local" directory versus "_data" directory

I figured out it.

if you pre generate the thumbnail or othersize (for example websize) in advance and upload to _data\i\galleries, you should make sure those files have a newer date than the original image it self, otherwise piwigo will regenerate it again.


life is a journey.
Eagle

Offline

 

#21 2013-08-09 23:48:24

oliverfr
Member
2012-06-17
5

Re: "local" directory versus "_data" directory

Hello,

I'm sorry to bring back this old thread, but I needed a confirmation, I wouldn't want to screw up badly.

So, to make room, it is safe to
- delete /_data/
- keep  /upload/

This is it ?

Code:

du -h --block-size=MiB --max-depth=1 | sort -n
1MiB    ./doc
1MiB    ./galleries
1MiB    ./install
1MiB    ./local
1MiB    ./template-extension
1MiB    ./tools
2MiB    ./include
3MiB    ./admin
5MiB    ./themes
10MiB   ./language
14MiB   ./plugins
10279MiB        ./_data
11015MiB        ./upload

--> With 10 and 11 GB per folder, I'd better not screw up, I don't even want to have to re-upload everything ^^

That would mean that /_data/ contains stuff like resized images that will be, if needed, re-generated on the fly when a visitor wants them ?
While /upload/ keeps the originals for when they're needed again ?

Thank you VERY MUCH if you can help me with that simple confirmation, that it's/ _data/ that can be deleted while /upload/ must be preserved :)

Offline

 

#22 2013-08-09 23:54:57

mistic100
Former Piwigo Team
Lyon (FR)
2008-09-27
3270

Re: "local" directory versus "_data" directory

why would you want to delete it ? it will be re-generated very quicly causing useless CPU usage

(but yes you can delete _data)

Offline

 

#23 2013-08-10 00:00:11

oliverfr
Member
2012-06-17
5

Re: "local" directory versus "_data" directory

The reason is that, with my server, my web host provides an additional backup server, on which my disk quota doesn't exceed 100 GB. So, that's becoming a considerable difference, all in all. If my backup can be 10 GB smaller, that's a literal relief. And I've got enough CPU to handle that :)

(and thank you very much, I mean it, for the /_data/ confirmation ! :) )

Offline

 
  •  » Engine
  •  » "local" directory versus "_data" directory

Board footer

Powered by FluxBB

github twitter facebook google+ newsletter Donate Piwigo.org © 2002-2018 · Contact