OK..smallish site..5mb snapshot, got sent over to me yesterday for some work.
Snapshot created, 2 minutes... nothing complicated and refreshingly quick!
First thing I did wasn't a big job particularly (I'd already done a dummy run anyway)...created a true/false custom variable, product level, to dictate whether a particular item was going to be present in a site-wide banner, linking to the product in question.
so..simple, custom variable...set 16 products (for starters) to true and added a bunch of code to both brochure and catalogue homepages.
(I'd originally got a hardcoded row of images linked...high maintenance for future changes)
I'll past the code here but it's a garbled mess like this!
basically, takes the product image and resizes it, adds a link (through the cgi bin) and excludes any duplicates so we don't get more than one occurance in the list.
I had to choose between excluding them here...or making it modifiable in the duplicate itself (so I could change them all manually to 'false')
I went for the quick update option (for the client, obviously)
ok..to the crux of the problem. For some reason, since adding this code, the upload time has gone from quick and easy to stupid slow.
Checking html files, at the start, takes about 30-45 mins and taking a snapshot (still 5mb-ish) is taking over an hour!
The code isn't that complex, could it really be making such a ridiculous difference in time?
I've compacted, obviously, but I am a bit concerned by this huge jump in processing time.
I'd appreciate any thoughts on this. (have deliberately not posted the url for now, on request)
thanks
Snapshot created, 2 minutes... nothing complicated and refreshingly quick!
First thing I did wasn't a big job particularly (I'd already done a dummy run anyway)...created a true/false custom variable, product level, to dictate whether a particular item was going to be present in a site-wide banner, linking to the product in question.
so..simple, custom variable...set 16 products (for starters) to true and added a bunch of code to both brochure and catalogue homepages.
(I'd originally got a hardcoded row of images linked...high maintenance for future changes)
I'll past the code here but it's a garbled mess like this!
Code:
<actinic:block type="EntireSectionList" >
<actinic:block type="ProductList" >
<actinic:block if="%28%3cactinic%3avariable%20name%3d%22ShowInFlagBanner%22%20%2f%3e%20%3d%3dTRUE%29%20AND%20%28%3cactinic%3avariable%20name%3d%22DuplicateIndex%22%20%2f%3e%20%3c%200%29" >
<a href="<actinic:variable name="SearchCGIURL" />?PRODREF=<actinic:variable Name="ProductID" />&NOLOGIN=1<actinic:block if="%3cactinic%3avariable%20name%3d%22IsHostMode%22%20%2f%3e">&SHOP=<actinic:variable name="ShopID" /></actinic:block>">
<img style="border: 1px solid #000000;" src="<actinic:variable name="ProductImageFileName" />" width="25" height="17" alt="<actinic:variable name="ProductName" />" border="0" /></a>
</actinic:block>
</actinic:block>
</actinic:block>
I had to choose between excluding them here...or making it modifiable in the duplicate itself (so I could change them all manually to 'false')
I went for the quick update option (for the client, obviously)
ok..to the crux of the problem. For some reason, since adding this code, the upload time has gone from quick and easy to stupid slow.
Checking html files, at the start, takes about 30-45 mins and taking a snapshot (still 5mb-ish) is taking over an hour!
The code isn't that complex, could it really be making such a ridiculous difference in time?
I've compacted, obviously, but I am a bit concerned by this huge jump in processing time.
I'd appreciate any thoughts on this. (have deliberately not posted the url for now, on request)
thanks
Comment