Search…

X3 Photo Gallery Support Forums

Search…
 
User avatar
alexhenes
Experienced
Topic Author
Posts: 568
Joined: 28 Sep 2006, 16:13

App/_cache & Site Organization

15 Dec 2014, 16:02

When changes are made to how a site is structured and URLs change... should App/_cache be cleared and rebuilt?
Alex
https://www.merelyafleshwound.com
https://www.goldenbikeshop.com
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13998
Joined: 30 Sep 2006, 03:37

Re: App/_cache & Site Organization

16 Dec 2014, 08:26

There is no need to clear it manually ... X3 detects based on modification dates what templates and pages need to be recreated ... You can force-refresh cache by deleting the content, but I can't see any benefits of that. Furthermore, the resized images cache is quite valuable and doesn't doesn't really relate to changes in pages.
 
User avatar
alexhenes
Experienced
Topic Author
Posts: 568
Joined: 28 Sep 2006, 16:13

Re: App/_cache & Site Organization

16 Dec 2014, 13:27

interesting... so if the url changes how does X3 know what cache image to use?
Alex
https://www.merelyafleshwound.com
https://www.goldenbikeshop.com
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13998
Joined: 30 Sep 2006, 03:37

Re: App/_cache & Site Organization

16 Dec 2014, 14:00

alexhenes wrote:interesting... so if the url changes how does X3 know what cache image to use?
If you change URL, meaning you are changing the physical path to the image, then likely X3 will need to re-create and cache a new version of the image. It doesn't mean you need to delete your entire image cache though ... That means it will also need to re-create images from all the folders that are unchanged, which is an "expensive" process for your server. Worst case scenario, you will have some unused orphan images in your cache folder.

Thus, X3 will always get the correct image, or create a new cached version, regardless of if you delete the image cache or not.